TextDialog

Declaration: TextDialog(InitialText, Caption: string; Passwd: boolean): string;
The function TextDialog displays a simple text input dialog to enter a single line of text. The parameter InitialText controls the text which is pre-set when opening the dialog. The parameter Caption specifies the caption of the dialog. The parameter Passwd controls the visibility of the entered text. If Passwd is set to TRUE the text displayed is using '*' characters, thus hiding the entered text as it is common usage when entering passwords.

The function returns the entered text after clicking the OK button (), or an empty string if the dialog is closed by clicking the close icon or pressing <ESC>.