String Format how it works.
-
When I have the following code
String ^sBuffer; sBuffer->Format(“Target number is {0}", this->id);
sBuffer will not be updated, but if I change it toString ^sBuffer; sBuffer= String::Format(“Target number is {0}", this->id);
It seems to work well. However, Is this the best way to use Format?Programmer Glenn Earl Graham Austin, TX
-
When I have the following code
String ^sBuffer; sBuffer->Format(“Target number is {0}", this->id);
sBuffer will not be updated, but if I change it toString ^sBuffer; sBuffer= String::Format(“Target number is {0}", this->id);
It seems to work well. However, Is this the best way to use Format?Programmer Glenn Earl Graham Austin, TX
strings are immutable. What you're doing is as good as anything.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )