1
如何使用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
与存储的值?
你需要TVarRec而不是变体:http://rvelthuis.de/articles/articles-openarr.html – 2011-12-22 08:52:29
@David:再次感谢!让这个答案,我会接受它。 – jpfollenius 2011-12-22 09:55:31