Vcl.Dialogs.ShowMessageFmt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ShowMessageFmt(const Msg: string; Params: array of const);
procedure ShowMessageFmt(const Msg: string; Params: array of const; TaskDlgFlags: TTaskDialogFlags);

C++

extern DELPHI_PACKAGE void __fastcall ShowMessageFmt(const System::UnicodeString Msg, System::TVarRec *Params, const int Params_High)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs Vcl.Dialogs

Description

Displays a message box with a formatted message.

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.

See Also