BuiltIn.InputBox Method

Applies to TestComplete 14.20, last modified on September 11, 2019

Description

Displays a window with an edit box and two buttons, OK and Cancel. Use this function to quickly get a value from the user.

Declaration

BuiltIn.InputBox(CaptionPromptDefault)

Caption [in]    Required    String    
Prompt [in]    Required    String    
Default [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Caption

The window title.

Prompt

The message that asks the user to enter a value (for instance, "Enter the loop count:").

Default

The string that is displayed in the edit box when the window appears on screen for the first time.

Result Value

If the user presses OK, InputBox will return the entered string. Otherwise, it returns Default.

See Also

BuiltIn.ShowMessage Method
BuiltIn.InputQuery Method
BuiltIn.MessageDlg Method

Highlight search results