TVariable Array access Operators

Find and return a TVariable within a structured variable or array.

TVariable& operator[](
   int index
);

TVariable& operator[](
   unsigned int index
);

TVariable& operator[](
   long index
);

TVariable& operator[](
   const wchar_t *label
);

TVariable& operator[](
   const TVariable &variable
);

Parameters

index 32 bit unsigned array index value.
label 16 bit wide character string for TVariable label.
variable TVariable that contains either an index or label value.

Return Values

These method will return the variable that fits the position, if no one exists, it will create a new one at that position.

Remarks

  • You need to be careful with the label value as MS VC++ don't provide a linking error if you use an ASCII string. All labels are 16 bit unicode string.
Example Use
TVariable var;
var[0][TEXT("fieldName")] = TEXT("This is a string");

Also See

 

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