Programming with Reflection

image\rwnprg32.gif InputBox method

 

Syntax Result = object.InputBox(Prompt, [Title], [Default])

 

Description

Opens a dialog box containing a prompt and a text box for user input, and returns the contents of the text box after the user clicks OK.

Arguments

Prompt Argument Type: String
Required
A string expression containing the text to be shown in the dialog box. The maximum length of this argument ranges from about 160 to 255 characters, depending on the characters in the prompt. Prompts longer than one line automatically break at the nearest space and wrap to the next line.

Title Argument Type: String
Optional
Specifies the caption that appears in the dialog box's title bar. The default value is the name of the Reflection product ("Reflection for HP", "Reflection for UNIX", or "Reflection for ReGIS Graphics").

Default Argument Type: String
Optional
A string expression that appears in the text box as the default response. The default is an empty string ("").

Return

Result Return type: String
If the user presses Enter or clicks the OK button, Result contains the text in the input box. If the user clicks Cancel, Result contains an empty string.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command