Saltar al contenido principal

InputQuery

Displays an input dialog that enables the user to enter a string.

Structure

InputQuery(const ACaption, APrompt: string; var Value: string): Boolean;

Parameters

Return Value

Description

Call InputQuery to bring up an input dialog box ready for the user to enter a string in its edit box. The ACaption parameter is the caption of the dialog box, the APrompt parameter is the text that prompts the user to enter input in the edit box, and the Value parameter is the string that appears in the edit box when the dialog box first appears.

If the user enters a string in the edit box and chooses OK, the Value parameter changes to the new value.

InputQuery returns True if the user chooses OK, and False if the user chooses Cancel or presses the Esc key.

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