Jump to content
Sign in to follow this  
clrblue

Looping Until It's Been Applied to All Records?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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