InputQuery(Prompt: String[, Title: String, Default: Boolean, Label1: String, Label2: String, Glyph: Boolean]): Boolean
Displays a prompt in a query box, User must click a button, returns a boolean value - True if left button pressed, False if right button pressed.
Notes: If the User presses Enter, InputQuery function returns the selected button. If User presses Esc, function returns False.
InputQuery function syntax has these named arguments:
Parameter |
Description |
|---|---|
Prompt |
Required. String expression displayed as the message in the dialog box. |
Title |
Optional. String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar. |
Default |
Optional. Sets focus to the specified button. If you omit default, the default is True. |
Label1 |
Optional. String expression displayed in the left button. If you omit label1, the default is 'Yes'. |
Label2 |
Optional. String expression displayed in the right button. If you omit label2, the default is 'No'. |
Glyph |
Optional. Allows suppression of glyphs on buttons. Pass True to suppress glyph, the default is False. |