Get(LastMessageChoice)

 <  Day Day Up  >  

Get(LastMessageChoice)

Category: Get

Syntax: Get ( LastMessageChoice )

Parameters: none

Description: Returns a number corresponding to the button clicked in the Show Custom Dialog.

Returns:

1 for the default button.

2 for the second button.

3 for the third button.

Examples:

For the following script step, where the default button is labeled OK, the second button is labeled Maybe, and the third button is labeled Cancel:

 

 Show Custom Dialog ["test";"Proceed?"] 

If the user chooses OK, Get (LastMessageChoice) returns 1.

If the user chooses Maybe, Get (LastMessageChoice) returns 2.

If the user chooses Cancel, Get (LastMessageChoice) returns 3.

You can then use an If() statement to handle each possibility appropriately.

Comments:

Though it has a value of 1, the default button on a dialog is always on the far right side. For example, if there are three buttons , they will appear in 3-2-1 (Cancel, Maybe, OK) order.

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net