Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
procedure ShowMessage(const Msg: string);
ShowMessage displays a message in a dialog box, waits for the user to click an OK button.
If Msg consists of more than one line, you can separate the lines using a carriage return linefeed character combination (#13#10) between each line.
The name of the application's executable file appears as the caption of the message box.
To display a message in a message box with other buttons, or with an icon, use the MessageDlg function.
uses Dialogs;
...
var s : string;
s := 'First line' + #13#10 + 'Second line...';
Showmessage(s)
//First line
//Second line...
|
Articles
Various Delphi Programming technical articles.
AdjustLineBreaks
ShowMessageFmt,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|