Script Steps Reference

Table Of Contents
Fields script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 79
Example 1
Calculates the number of the next available invoice ID, using the Max function to return the highest
value in the Invoice ID field. If an invoice ID contains non-numeric data, then the calculation would
need to be more sophisticated to maintain the numeric and non-numeric data.
Go to Record/Request/Page [Last]
Set Next Serial Value [Invoices::Invoice ID; Max ( Invoices::Invoice ID )
+ 1]
Example 2
Sets the next serial number value in the Invoice ID field options after importing records. Useful if
Perform auto-enter options while importing is not selected in order to preserve dates and other
auto-entered values.
Import Records [Add; Mac Roman]
Set Next Serial Value [Invoices::Invoice ID; Get ( TotalRecordCount ) + 1]
Example 3
Prompts the user to input the next serial value.
Show Custom Dialog ["Set the next serial number value"; Invoices::Next
Serial Value]
If [Get ( LastMessageChoice ) = 1]
Set Next Serial Value [Invoices::Invoice ID; Invoices::Next Serial
Value]
End If