[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Displays a box with specified title and prompt, and accepts user input in a text box.
Source position: dialogs.pp line 735
function InputBox( |
const ACaption: string; |
const APrompt: string; |
const ADefault: string |
):string; |
ACaption |
|
The caption for the dialog box. |
APrompt |
|
The text asking the user for his input. |
ADefault |
|
Default value for dialog box. |
The result of this function is the string the user entered in the editbox or the default string.
A default string can optionally be displayed in the text box. The user-entered or default string is returned as the function result.
If the user selects the OK button, the text in the text box is returned. If the user selects the Cancel button, the default string is returned.
|
Displays the specified message text. |
uses Forms, LCLType, Dialogs, Controls; procedure TryInputBox; var userstring: string; begin userstring := InputBox ('Get some text input', 'Please type in some information', 'Some sample text'); ShowMessage(userstring); end;
Version 3.2 | Generated 2024-02-25 | Home |