如何将Format
与Variant
数组一起使用?我有一个例外,应该单独存储消息和参数,以便可以在顶层完成翻译:
TMyException = class (Exception)
private
FParams : array of Variant;
public
constructor Create (const Msg : String);
constructor CreateFmt (const Msg : String; Args : array of Variant);
end;
现在我怎样才能将Format
与存储的值一起使用?