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

formatFormat 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 Operators
Comments (0)Listen All
Characters left: 2500
 
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript