Reference > Functions reference > Get functions > Get(LastMessageChoice)
 
Get(LastMessageChoice)
Purpose 
Returns a number corresponding to the button clicked in an alert message displayed by the Show Custom Dialog script step.
Format 
Get(LastMessageChoice)
Parameters 
None
Data type returned 
number
Originated in 
FileMaker Pro 6.0 or earlier
Description 
Returns:
1 for the first button (by default, labeled OK)
2 for the second button (by default, labeled Cancel)
3 for the third button
Example 1 
For an example script, see Show Custom Dialog script step.
Related topics 
Show Custom Dialog script step
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas