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

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

Recommended Posts

Posted

I have a FM Pro 4 script that loops to tests the value of a field and omit the record if true. The problem is when there are two or more consecutive records that meet the test criteria. In this case, only every other record is omitted because the record is omitted and when the script reaches the goto next record step, it is going-to from the record AFTER the omitted record, not from after the record that was omitted.

So far, I've "solved" the problem by sorting by the test field and creating a loop that counts the desired records. I then loop again until I reach the desired field, and perform a multiple omit. But this involves user interaction to enter the value of the counter in the omit multiple dialog box.

What......?

------------------

Sad, sad day for America.

Posted

Try placing the Go to Record [ Next ] within the same If statement that checks to see if the record needs to be omitted.

Loop

Posted

Thank you for your prompt reply.

I've tried your solution, but it sends the script into an infinite loop.

[This message has been edited by wowmom (edited December 14, 2000).]

Posted

quote:

Originally posted by Chuck:

Try placing the Go to Record [ Next ] within the same If statement that checks to see if the record needs to be omitted.

Try this instead, basically you want to either Omit the record or move onto the next record.

Loop

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