Show: Delphi C++
Display Preferences

Vcl.Dialogs.InputQuery

From XE2 API Documentation
Jump to: navigation, search

Delphi

function InputQuery(const ACaption: string; const APrompts: array of string; var AValues: array of string; CloseQueryFunc: TInputCloseQueryFunc): Boolean;
function InputQuery(const ACaption: string; const APrompts: array of string; var AValues: array of string; CloseQueryEvent: TInputCloseQueryEvent; Context: TObject): Boolean;
function InputQuery(const ACaption, APrompt: string; var Value: string): Boolean;

C++

extern PACKAGE bool __fastcall InputQuery(const System::UnicodeString ACaption, System::UnicodeString const *APrompts, const int APrompts_Size, System::UnicodeString *AValues, const int AValues_Size, _di_TInputCloseQueryFunc CloseQueryFunc = _di_TInputCloseQueryFunc())/* overload */;

Contents

Properties

Type Visibility Source Unit Parent
function public
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs Vcl.Dialogs

Description

Displays an input dialog box that lets the user enter a string, double, or integer.

Call InputQuery to bring up an input dialog box ready for the user to enter a string, double, or integer in its edit box.

ACaption is the caption of the dialog box.

APrompt is the text that prompts the user to enter input in the edit box.

Value is the value that appears in the edit box when the dialog box first appears and which returns the value that the user enters.

InputQuery returns true if the user chooses OK, and false if the user chooses Cancel or presses the Esc key.

If a default value should be used when the user cancels out of the dialog, use InputBox instead.

See Also


Code Examples

Personal tools
Previous Versions
Translations