Format for TString

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Wed Jul 14 1999 - 14:13:15 MEST


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.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET