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

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

Recommended Posts

Posted

Without an EOF or a Loop...Until construction or a For loop, I am unsure as to how to create a script so that it runs until it has applied it's results to each & every record in the db. Any help would be appreciated.

TIA,

KC

Posted

Use the "Go to next record/request/page" and be sure to set the "Exit After Last" option.

This will exit the loop.

There is also and Exit Loop If statement if you need to exit the loop not based on record processing, but by criteria processing.

Posted

I've used loops on single records. It's one way of making sure that the user puts a correct value, choice, or other sort of validation. They can't get out of the loop until all the criteria is met.

  • Newbies
Posted

You could always make a script that runs itself until a criteria is met...

(Script name = Checked)

Enter find Mode[]

Set Field["Control", "Checked"""]

Omit Record

Perform Find [Replace Found Set]

If["Status(CurrentFoundCount)<1"]

Halt Script

End If

Set Field["Control", "Checked"""]

Perform Script[sub-scripts,"Checked"]

/Keda

  • Newbies
Posted

You could always make a script that runs itself until a criteria is met...

(Script name = Checked)

Enter find Mode[]

Set Field["Control", "Checked"""]

Omit Record

Perform Find [Replace Found Set]

If["Status(CurrentFoundCount)>0"]

Halt Script

End If

Set Field["Control", "Checked"""]

Perform Script[sub-scripts,"Checked"]

/Keda

This topic is 8140 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.