The function displays a simple dialog box with the given InputQuery Caption and Prompt message. It asks the user to enter data in a text box on the dialog.
If the user presses OK, the entered data is stored in the UserValue variable and the return value is True.
If the user cancels the dialog, then the return value is False and any entered data is lost.
Use to ask the user for simple data such as a name.
Display a dialog that asks for user text input, with default
Shows a dialog allowing the user to select a file
Display a string in a simple dialog with an OK button
Display formatted data in a simple dialog with an OK button
Display a string in a simple dialog at a given screen position
Buy Website Traffic at Buywebsitetrafficexperts.com
Buy Proxies at Buyproxies.io
this web site as a Windows program.
Example code : Keep asking the user for their name until they do so
value : string;
begin // Keep asking the user for their name
if not ('Test program', 'Please type your name', value) InputQuery
then ShowMessage('User cancelled the dialog');
until value <> '';
// Show their name
Show full unit code
A dialog is displayed asking for the user name.
If the user types their name, 'Fred' and hits OK :
is then displayed