GetChoice System Query Command

GETCHOICE AmigaOnly

Opens a dialog box with a short message and allows the user to click on one of one, two or three buttons, to make a choice.

getchoice [BUTTON2 label/S] [BUTTON3 label/S]

MESSAGE/s The message to show the user. Max length = 44 characters.

BUTTON1/s The label for the positive button. Max length = 8 characters. This button will be the default button.

BUTTON2/s The label for the negative button. Max length = 8 characters. This button can be activated by pressing the Esc key.

BUTTON3/s The label for a third button. Max length = 8 characters.

Results:

Returns the number of the button pressed to RESULT.

Notes:

Precede the character to underscore as a bound keyboard equivalent in the label name. For example, "_Huh?" would make "H" the keyboard shortcut for the "Huh?" button.

Examples:

'getchoice message "Click on a button." button1 "_OK"
button2 "_Cancel"'
   buttonid=RESULT

 

GetChoice  Command Definition  url:PGScmd/getchoice
  created:2006-03-30 22:20:06   last updated:2006-03-30 22:20:06
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For GetChoice
Dan Kilroy wrote...2006-05-04 16:40:53

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

string = GetChoice (<MESSAGE message> <BUTTON1 label> [BUTTON2 label] [BUTTON3 label])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For GetChoice