Survey Tabulation > Advanced expressions > UNICOM Intelligence function library > Miscellaneous functions > InputBox
 
InputBox
Displays a dialog box that contains a message, a text box for input, an OK button, and a Cancel button.
Syntax
InputBox(Prompt[, Default[, Title]])
Parameters
Prompt
Type: Text
Message to display in the dialog box.
Default
Type: Text
Optional. Initial contents of the dialog box.
Title
Type: Text
Optional. Text to display in the title bar.
(return)
Type: Text
Final contents of the text box, or an empty string.
Remarks
The user can change the contents of the text box.
If the user clicks OK or presses Enter, the current contents of the text box are returned.
If the user clicks Cancel or presses the Escape key, the return value is "".
If Default is omitted, the text box is initially empty.
If Title is omitted or is "", the dialog box’s title is “UNICOM Intelligence”.
The dialog box’s height is adjusted (up to the height of the screen) to include as much as possible of the Prompt text. All text entered in the text box is returned. This is different from the Visual Basic InputBox, which displays only 1023 characters of the prompt, allows only 1023 characters of input, and returns only 254 of the input characters.
The dialog box is modal; that is, the InputBox function does not return until the user closes it, for example, by clicking OK or Cancel. However, if the dialog box is called from a Windows application, the application is not suspended while the dialog box is open.
See also
Miscellaneous functions