TVariable Assignment Operators

Assigns a new value to the TVariable. The SetDate and SetUTCTime with a void parameter list will be set to the current date and time.

TVariable& operator=(
   bool newValue
);
TVariable& operator=(
   char newValue
);
TVariable& operator=(
   short newValue
);
TVariable& operator=(
   int newValue
);
TVariable& operator=(
   __int64 newValue
);
TVariable& operator=(
   unsigned char newValue
);
TVariable& operator=(
   unsigned short newValue
);
TVariable& operator=(
   unsigned int newValue
);
TVariable& operator=(
   unsigned __int64 newValue
);
TVariable& operator=(
   float newValue
);
TVariable& operator=(
   double newValue
);
TVariable& operator=(
   FILETIME newValue
);
TVariable& operator=(
   const char* newValue
);
TVariable& operator=(
   const BYTE* newValue
);
TVariable& operator=(
   const char16_t* newValue
);
TVariable& operator=(
   TVariable *newReference
);
TVariable& operator=(
   const TVariable &newValue
);
TVariable& InitBinary(
   unsigned int value_l
);
TVariable& SetBinary(
   const void *newValue,
   unsigned int value_l = 0
);
TVariable& SetOSHandle(//Since TScript 1.3
/*For Windows*/
   HANDLE *newValue
/*For Linux*/
   int newValue
);
TVariable& SetStructure(
   const BYTE *newValue,
   unsigned int format = 0,
   count BYTE **returnLocation = NULL
);
TVariable& SetStructure(
   const char16_t *newValue,
   unsigned int format = 0,
   const char16_t **returnLocation = NULL
);
TVariable& SetDate();
TVariable& SetDate(
   unsigned int newValue
);
TVariable& SetUTCTime();
TVariable& SetUTCTime(
   FILETIME newValue
);

Parameters

newValue TVariable will set the type by the inputted parameter type.
newReference Pointer to a TVariable.
value_l Binary length. If this parameter is set to zero, then expects the newValue to be a null terminating string.
format Please see Parameters for correct values.
returnLocation Enables caller to see if all the buffer contained a properly formated structure.

Return Values

These methods will return the new initialized TVariable.

Remarks

Example Use
TVariable var;
var = TEXT("This is a string");

Also See

Copy
 

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