1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

ShowMessageFmt

unit
Dialogs
category
Dialog and Message routines

declaration
procedure ShowMessageFmt(const Msg: string; FmtStr: array of const);

description
ShowMessageFmt displays formatted message Msg 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.

example
uses Dialogs;
...
var s : string;

s := 'My App %d version %4.3f';

ShowmessageFmt(s, [4, 0.123]);

//myApp 4 version 0.124

in real code
Articles
Various Delphi Programming technical articles.

see also
ShowMessage,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
Explore Delphi Programming
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2010 About.com, a part of The New York Times Company.

All rights reserved.