From Dwayne Wright
FMP Version: FileMaker 7
Returns A Number Result
This function is linked to the Show Custom Dialog script step. Using this function, you can see which of the 3 possible choices the user made from the dialog box the Show Custom Dialog script step provides.
In the dialog box, the users selection of the first choice on the right will return a 1
In the dialog box, the users selection of the middle choice will return a 2
In the dialog box, the users selection of the first choice on the left will return a 3
It is kind of weird but the order is reversed when the developer is setting up the Show Custom Dialog. In this case, the option to the far left is the default and returns a 1 by the Get(LastMessageChoice) function, then then goes to the right.
The way the Get(LastMessageChoice) is used in a script is that after the Show Custom Dialog script step, the developer would include a set of branching IF statements. Depending on the result returned from the Get(LastMessageChoice), aka the choice made by the user via the dialog box, the script will perform a set of script steps.
© 2007 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.