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

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

Recommended Posts

  • Newbies
Posted

hello, i have a DB that usually has current records, but every so often, there are no active records, it gets stuck in a loop, and i have to user abort it... how do i exit the loop when there are no more records to omit... thanks in advance.

Enter Browse Mode

Go to Layout ("invoice summary" (invoice table))

Show All Records

Go to Record /Request/ Page [First]

Loop

If [invoice table::invoice status = "current")

Set Field [invoice table::days; If ( invoice table::invoice paid yn = "awaiting"; (Get ( CurrentDate) - invoice table::invoice date;"")]

Set Field [invoice table::pay beth: If ( invoice table::ER Income paid yn "holding"; "!";"")]

Set Field [invoice table::pay mike; If ( invoice table::Mj Income paid yn "holding"; "!";"")]

Go to Record/ Request/ Page [Next; Exit after last]

Else

Omit Record [color:red](this is where it is getting stuck - when there are no more records to omit)

Allow User Abort (On) [color:red](then i have to abort it here)

End If

End Loop

Sort Records [Restore; No dialog]

Move/Resize Window (Current Window; Height: 950; Width: 1600; Top: 0: Left: 90)

Adjust Window [Resize to Fit]

  • Newbies
Posted

that works perfectly, couldn't find the "Get(FoundCount)" command in the script calculation, so copy/pasted "not Get(FoundCount)" in place. thanks very much.

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