How to Create ShowMessage Delphi - Cara Membuat ShowMessage Delphi

How to Create ShowMessage Delphi - Cara Membuat ShowMessage Delphi

Display a string in a simple dialog with an OK button.
Menampilkan string dalam simple dialog dengan tombol Ok.

Descriptions:

  • The showmessage procedure displays a string of Text in a simple dialog with an OK button.

  • It is used to inform the user of some information - no decision is needed by the user.

  • Insert carriage return and line feed characters (#13#10) into the string to generate multi line message display.


unit Unit1;
 
interface
 
uses
  Forms, Dialogs;
 
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  end;
 
var
  Form1: TForm1;
 
implementation
{$R *.dfm} // Include form definitions
 
procedure TForm1.FormCreate(Sender: TObject);
begin
  // Show a simple message
  showmessage('Hello World');

  // Show a blank message
  showmessage('');

  // Split this into two lines
  showmessage('Hello '+#13#10+'World');
end;

Related Posts

Load comments

Comments