Daryl Posted May 26, 2006 Share Posted May 26, 2006 I need the simple loop syntax to loop through a found set of records and simply add a few characters to each record until the script reaches the end of the found set, then the loop ends. I just need to control the loop with a counter and I have forgotten how to do it. Help, Daryl Link to comment Share on other sites More sharing options...
Razumovsky Posted May 26, 2006 Share Posted May 26, 2006 go to next record (check 'exit after last') Link to comment Share on other sites More sharing options...
Lee Smith Posted May 26, 2006 Share Posted May 26, 2006 (edited) Off of the top of my head, Go to Layout [ “YourFile” (Layout1) ] Set Field [ g_Field; "" ] Go to Record/Request/Page [ First ] Loop Set Field [ g_Field; g_Field & "¶" & " - " & Field1 & " - " & Field2 & "¶" ] Go to Record/Request/Page [ Next; Exit after last ] End Loop Go to Layout [ “yourFile” (Layout2) ] HTH Lee After posting this, I looked Loop Script up in the Online FileMaker Help and there are two good examples of a loop scrip Contents > Creating scripts to automate tasks > ScriptMaker examples > Loop structure example Edited May 26, 2006 by Guest FM Help Info Link to comment Share on other sites More sharing options...
Daryl Posted May 28, 2006 Author Share Posted May 28, 2006 Thanks, way too easy! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6541 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