Jump to content

Exit loop Step


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

Recommended Posts

Hi All

I Just recently started writing scripts. I am having trouble with exit loop step. I created a script which exports found records and imports them into another Filemaker document, Ok this worked well. My problem is when I need to delete records found. So I use a loop step to delete found records. the loop continues and won't stop even with the exit loop step.

What am I doing wrong

Sample

Loop

Exit loop if Status(current found records=0)

go to record/request/page (first record)

delete record request/page

End loop

Do I need a loop step.

Thanks in advance

Version: v6.x

Platform: Mac OS X Panther

Link to comment
Share on other sites

Exit loop if [ Status (CurrentFoundCount) = 0 ] should work. You don't need the Go to first record step.

However, if your goal is to delete the found set of records, why not just use the Delete Found Records step?

Link to comment
Share on other sites

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