
ToString
ToString formats and return a string valid for printing. This can cast a TVariable from a none string type, including a structure or array and return an acsii string ready for printing.
TVariable ToString( unsigned int format = 0 ); TVariable ToString( const wchar_t *format ); TVariable ToString( const TVariable &format );
Parameters
format | Format can vary from Parameters to standard c language printf style strings. |
Return Values
These methods will return the modified TVariable, or a temporary const TVariable created on the stack.
Remarks
Example Use
TVariable var("123"); var = var.Integer() + 10; MessageBox(var.ToString("The value is %d")); //will show "The value is 133"
Also See
Casting OperatorsComments (0)Listen All