jtringale Posted November 8, 2000 Share Posted November 8, 2000 Hi All, I'm trying to write a script for a file that contains sum 100 records. I'd like the script to select all records, go to 5 different fields, and then clear the contents of the fields. I need the script to do this for all 100 records. I've written the script so that it performs a "Find ALl", then a "Go To Field" and then a "Clear Field". It does this for each of the 5 different fields. However, it is only performing this script on the 1st record and then stops. Can anyone tell me how I can get this script to repeat the process on all 5 fields? Thank you for your assistance and comments. Joe T. Link to comment Share on other sites More sharing options...
dspires Posted November 8, 2000 Share Posted November 8, 2000 Loop your stuff goto record request page[Exit after last, Next] end loop Link to comment Share on other sites More sharing options...
jtringale Posted November 15, 2000 Author Share Posted November 15, 2000 Thank you for your help with this. This works and does everything I want it to except that the routine is not hitting the first record of the database. Do you know why this may be happening? Thanks again. Joe quote: Originally posted by dspires: Loop your stuff goto record request page[Exit after last, Next] end loop Link to comment Share on other sites More sharing options...
yafreax Posted November 15, 2000 Share Posted November 15, 2000 add the line Go to Record/Request First immediatly before the loop. Jeremy ------------------ Filemaker's kind of like a wife; easy to love, yet just so complicated. Link to comment Share on other sites More sharing options...
jtringale Posted November 16, 2000 Author Share Posted November 16, 2000 Thank you, Jeremy. I appreciate your help. Joe quote: Originally posted by yafreax: add the line Go to Record/Request First immediatly before the loop. Jeremy Link to comment Share on other sites More sharing options...
jtringale Posted November 16, 2000 Author Share Posted November 16, 2000 Hi Jeremey, I tried this and it still isn't hitting the first record. I must be doing something wrong. If you can help I'd appreciate it. Joe quote: Originally posted by yafreax: add the line Go to Record/Request First immediatly before the loop. Jeremy Link to comment Share on other sites More sharing options...
yafreax Posted November 16, 2000 Share Posted November 16, 2000 write out the exact syntax of your script for us and let us take a look. . . ( even if it is real long it may lie somewhere at the top of the script ) Jeremy Link to comment Share on other sites More sharing options...
jtringale Posted November 16, 2000 Author Share Posted November 16, 2000 Will Do. Thank you. quote: Originally posted by yafreax: write out the exact syntax of your script for us and let us take a look. . . ( even if it is real long it may lie somewhere at the top of the script ) Jeremy Link to comment Share on other sites More sharing options...
jtringale Posted November 16, 2000 Author Share Posted November 16, 2000 Jeremy, Here it is: ENTER BROWSE MODE GO TO LAYOUT PRINT SETUP FIND ALL SORT (RESTORE) LOOP GO TO RECORD/REQUEST/PAGE (EXIT AFTER LAST/NEXT) GO TO FIELD ( Link to comment Share on other sites More sharing options...
yafreax Posted November 16, 2000 Share Posted November 16, 2000 well, on the above, you didn't insert the line Goto record/request (first) insert this line directly in front of the loop If this was just a mistake in the posting, well there's only one more thing to do... put the goto record ( next / exit after last ) as the very last step in the loop This should fix it. Jeremy I keep typing the wrong thing, maybe i should profread! [This message has been edited by yafreax (edited November 16, 2000).] [This message has been edited by yafreax (edited November 16, 2000).] Link to comment Share on other sites More sharing options...
jtringale Posted November 17, 2000 Author Share Posted November 17, 2000 Thank you. I'll try that. Joe quote: Originally posted by yafreax: well, on the above, you didn't insert the line Goto record/request (first) insert this line directly in front of the loop If this was just a mistake in the posting, well there's only one more thing to do... put the goto record ( next / exit after last ) as the very last step in the loop This should fix it. Jeremy I keep typing the wrong thing, maybe i should profread! [This message has been edited by yafreax (edited November 16, 2000).] [This message has been edited by yafreax (edited November 16, 2000).] Link to comment Share on other sites More sharing options...
jtringale Posted November 20, 2000 Author Share Posted November 20, 2000 Hi Jeremy, The latter solution fixed it. I placed it at the very end of the loop and before End Loop and Exit Loop. It then worked. Thank you for your help! Joe quote: Originally posted by jtringale: Thank you. I'll try that. Joe Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8558 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now