Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop exiting

Status
Not open for further replies.

mattpacman

IS-IT--Management
Nov 14, 2002
6
US
I am new to FMP, and am using 5.5 for Mac. I am writing a script that lists due invoices. I want the script to compare the field "Due Date" and the global field "Today Date". If Today Date is after the Due Date, I would like the script to set the field "Due?" to "Yes" , else to "No". I am using a loop, but it runs indefinantly. How should I stop the loop? Is there a way to stop after the last record? Thanks.
 
a loop is always build like this :

go to record/request/page [first]
loop
...
go to record/request/page [Exit after Last, Next]
end loop

so in order to stop the loop when it reaches it last record, you must always choose 'next' from the specify pull down menu and then a check box will appear where you can choose 'exit after last'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top