Many Get functions return information that changes on a regular basis. For example, when the Get(CurrentTime) function is placed in a stored
calculation field, the time will update only when a new
record is created. If the calculation has other
fields in it but the calculation result still returns the current time, the stored calculation result will update only when those other fields have been modified in the current record. If either of these calculations are
unstored, the time will update as needed. For performance reasons, making a calculation field unstored is not always the best idea. Get functions are best used in a script where the status information from a Get function is up-to-date at the moment that the calculation is run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if the Allow User Abort script step is on; otherwise, returns 0 (false).
|
|
1 (true) if the formatting bar is allowed to be visible; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if the Set Error Capture script step is on; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if high contrast is available and active; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if Omit is selected in the current find request; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
1 (true) if animations are enabled for the current script; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if the text ruler is displayed; otherwise, returns 0 (false).
|
|
|
|
1 (true) if the touch keyboard is set to display automatically when needed; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if Use System Formats in the Format menu is on; otherwise, returns 0 (false).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 (true) if the window is visible; returns 0 (false) if the window is hidden using Hide Window.
|
|
|
|
|
This script uses the function Get(CurrentDate) to check each record in the found set to see if an account is past due. If an account is past due, the script shows a message and prompts the user to click a button labeled Ignore, Send Letter, or Send Mail (set up through the Show Custom Dialog script step). The script captures the user's response using
Get(LastMessageChoice). Then, based on the user's response, the script performs an action: it cancels the rest of the script, prints a "payment is late" letter, or sends email to the associated account.