Newbies mjasinski Posted December 21, 2007 Newbies Posted December 21, 2007 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]
comment Posted December 21, 2007 Posted December 21, 2007 Try: ... Loop Exit Loop If [ not Get(FoundCount) ] ...
Newbies mjasinski Posted December 21, 2007 Author Newbies Posted December 21, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now