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

newType The new variable type, TVariable::NONE will reset the variable.
returnType The current variable type, TVariable::NONE would mean that the value has not been set.
format See Parameters for more details.

Return Values

These methods will return the a temporary const value created on the stack.

Remarks

Example Use
TVariable var("123");
var = var.Integer() + 10;
MessageBox(var.ToString());//return "133"

Also See

ToString
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript