RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Dialogs.ShowMessageFmt Function

Displays a message box with a formatted message.

Pascal
procedure ShowMessageFmt(const Msg: string; Params: array of const);
C++
ShowMessageFmt(const AnsiString Msg, array of const Params);

Dialogs

Call ShowMessageFmt to display a simple message box with an OK button. The name of the application's executable file appears as the caption of the message box. 

The Msg parameter is a format string for the message that appears in the message box. The Params parameter provides the parameters that are assembled into the message. The Params_Size parameter gives the index of the element of the Params array (one less than the number of parameters). 

For more information about how messages are formatted, see Format Strings. 

To display a message in a message box with other buttons, or with an icon, use the MessageDlg function.

Note: If the user types Ctrl+C in the message box, the text of the message is copied to the clipboard.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!