Format for TString

Jacek M. Holeczek (holeczek@us.edu.pl)
Wed, 14 Jul 1999 14:13:15 +0200 (MET DST)


Hi,
I'm looking for a solutions to a small problem. I have :
char formbuf[1024];
TString mystring;
then I "collect" many times :
mystring.Append(formbuf,(Ssiz_t)sprintf(formbuf,"FormatSpecifier",VariableList));
This is annoying, and I would prefere something like this :
mystring += Format("FormatSpecifier",VariableList);
or :
mystring.Append(Format("FormatSpecifier",VariableList));
but the "Format" ( from BASE_String.cxx ) is not available in interpreter.
On principle I need a dynamically expandable "string" ( maximum size
unknown ) which is used to "collect" many "printf" outputs.
Any solutions ?
Thanks in advance,
Jacek.