TVariable Index Operators

Assigns or retrieves the index value of a TVariable.

unsigned int FirstIndex() const;

unsigned int NextIndex(
   unsigned int index
) const;

unsigned int GetIndex() const;

unsigned int SetIndex(
   unsigned int oldIndex,
   unsigned int newIndex
);

unsigned int Erase(
   unsigned int startIndex,
   unsigned int finishIndex = 0
);

Parameters

index The index value.
oldIndex The old index value.
newIndex The new index value.
startIndex The first index.
finishIndex The last index, if allowed to default, it will be set to the startIndex value.

Return Values

These methods the index value for each TVariable.

Remarks

Example Use
TVariable var;
var.SetStructure({"one","two","three","four","five",12=>"six",13=>"seven",14=>"eight"});
for(int i = var.FirstIndex(); i < var.length; i = var.NextIndex(i))
	MessageBox(TVariable("This value = ") + var[i].ToString());

Also See

Label Operators
 

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