首页 > 其他 > 详细

ShowMessageFmt 用法

时间:2016-10-25 09:44:07      阅读:276      评论:0      收藏:0      [点我收藏+]

 

举例:ShowMessageFmt(‘n1:%x; n2:%x‘, [n1,n2]);

     技术分享 显示Params 为 array[integer] of TvarRec

 

 进制表示 %o(8)   printf("%d(10)  %x(16)

procedure ShowMessageFmt(const Msg: string; Params: array of const);
begin
  ShowMessage(Format(Msg, Params));
end;

function Format(const Format: string; const Args: array of const): string;
begin
   Result := System.SysUtils.Format(Format, Args, FormatSettings); //FormatSettings这个格式默认在哪里设定?
end;

ShowMessageFmt 用法

原文:http://www.cnblogs.com/rogge7/p/5995378.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!