ShowMessageFmt 用法

 

举例: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;

原文地址:https://www.cnblogs.com/rogge7/p/5995378.html