TVariable Casting Operators

Changes the Cast of a given variable or safely returns a cast of the data behind the variable.

TVariable& Cast(
   VariableType newType
);
VariableType Type(
   const char16_t **returnType = NULL
);

bool Boolean();

double Decimal(
   unsigned int format = 0
);

__int64 Integer(
   unsigned int format = 0
);

TVariable* Reference();

FILETIME UTCTime(); 

HANDLE Handle();/*Windows Version*/
int Handle();/*Linux and Solaris Versions*/

const BYTE* AString(
   unsigned int format = 0
);

const char16_t* WString(
   unsigned int format = 0
);

Parameters

newTypethe new variable type, TVariable::NONE will reset the variable.
returnTypethe current variable type, TVariable::NONE would mean that the value has not been set.
formatSee Parameters for more details.

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());//return "133"

Also See

ToString
Comments (0)Listen All
Characters left: 2500
 
Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript Ekky Software Homepage Ekky Software Homepage ObjectDatabase++ TScript