GUI.InputQuery

Top  Previous  Next

Shows a dialog that lets a user input text.

 

Syntax

function GUI.InputQuery(Caption, Prompt: string; var Value: string): boolean

 

Alternative Names

ibec_inputQuery

 

Description

Shows a dialog with an OK and CANCEL button, synchronized with the main thread and halts execution until the user closes it. You can modify the caption and prompt for user input.

 

Caption is the text in the dialog title.

 

Prompt holds a message about the input required.

 

The variable Value holds the entered text when the user clicks OK. If the variable has a value before showing the dialog, this text is visible in the input box.

 

The Return Value is TRUE when the user clicks OK, FALSE otherwise.

 

See also

GUI.PasswordQuery

 

Example

execute UDSBlock returns (str_value varchar(100))

as

begin
  str_value = 'enter name here';

  GUI.InputQuery('Introduction', 'What is your name', str_value);

  suspend;

end