Daryl Posted May 26, 2006 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
Lee Smith Posted May 26, 2006 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
Recommended Posts
This topic is 6756 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