主题:ShowMessageFmt的问题,
PCzhang
[专家分:0] 发布于 2006-01-18 21:37:00
ShowMessageFmt怎么用?大家给个意见。
回复列表 (共1个回复)
沙发
rudolf [专家分:440] 发布于 2006-01-19 10:59:00
看帮助啊!!
ShowMessageFmt
Displays a message box with a formatted message.
Unit
QDialogs
Category
dialog and message routines
extern PACKAGE void __fastcall ShowMessageFmt(constWideString Msg, const System::TVarRec *Params, const int Params_Size);
Description
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.
你比我还懒!!
ShowMessageFmt过程: 弹出一个对话框,显示一条消息字符串,字符串中可包含格式符.
procedure ShowMessageFmt(const Msg: string, Params: array of const);
如:ShowmessageFmt('%d, %d, %f', [8, 2, 123.456]);
我来回复