![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersTScript APICasting Operators |
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 );
| 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. |
TVariable var("123");
var = var.Integer() + 10;
MessageBox(var.ToString());//return "133"
Copyright © 2007, Ekky Software Pty Ltd.