LOTUSSCRIPT LANGUAGE
Displays a dialog box containing a prompt for user entry, and returns input from the user as a string.
Syntax
InputBox[$] ( prompt [ , [ title ] [ , [ default ] [ , xpos , ypos ] ] ] )
Elements
prompt
If you omit title, nothing is displayed in the title bar. If you omit title and specify either default or xpos and ypos, include a comma in place of title.
If you omit default, the text input box is empty. If you omit default and specify xpos and ypos, include a comma in place of default.
The InputBox function returns a Variant containing a string. InputBox$ returns a String. Returned string can be any length. LotusScript defines, but does not enforce, a minimum supported length of 512. The specific product being used (that is, Notes, ESB, and so on) may impose other limits.
Usage
InputBox displays a dialog box with OK and Cancel buttons and a text entry field, interrupting execution of the script until the user confirms the text entry by clicking OK or Cancel. Then InputBox returns that entry. If the user clicks Cancel, InputBox returns the empty string (""). When the user clicks OK or Cancel, execution resumes.
The Lotus software where you are running LotusScript may allow longer strings than described above for prompt, title, default, and the text entered into the text entry field. LotusScript will support longer strings for these items if the Lotus software does, up to the maximum string size.
If you are using LotusScript from within Lotus Notes, note that the InputBox function writes to:
@Prompt function in formula language
Example See Also