Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6756 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted (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 by Guest
FM Help Info

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.