Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function InputBox(const ACaption, APrompt, ADefault: string): string;
InputBox displays an input dialog box that enables the user to enter a string.
ACaption is the caption of the dialog box, APrompt the text that prompts the user to enter input in the edit box, and ADefault appears in the edit box when the dialog box first appears. InputBox returns the string in the edit box if the user chooses the OK button, and default string if the Cancel button was pressed.
uses Dialogs;
...
var s, name : string;
s:='default name';
name:=InputBox('Name input',
'Please enter your name', s)
|
InputQuery,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|