InputBox
Displays a dialog containing a specified message, a text box for input, an OK button, and a Cancel button.
Syntax
InputBox(<text>[, <default_text>[, <title>]])
Parameters
<text>
Type: Text
Message to display in the dialog.
<default_text>
Type: Text
(Optional.) Initial contents of the dialog. If Default is omitted, the text box is initially empty.
<title>
Type: Text
(Optional.) Text to display in the title bar. The default value is “UNICOM Intelligence”.
(return)
Type: Text
Final contents of the text box, or an empty string.
Notes
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 Escape, the return value is "".
The dialog’s height changes to include as much as possible of the text (up to the height of the screen). 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 is modal, meaning that the InputBox function does not return until the user closes it, for example, by clicking OK or Cancel. However, if the dialog is called from a Windows application, the application is not suspended while the dialog is open.
See also