May 26, 200619 yr 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
May 26, 200619 yr 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, 200619 yr by Guest FM Help Info
Create an account or sign in to comment