TVariable Index Operators

Assigns or retrieves the index value of a TVariable.

unsigned int FindIndex(
   unsigned int options = TVariable::FIRST,
   __int64 index = 0
) const;

unsigned int GetIndex() const;

unsigned int SetIndex(
   unsigned int oldIndex,
   unsigned int newIndex

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


optionsSeach options. See TVariable enum for more details on the various values
indexthe index value.
oldIndexthe old index value.
newIndexthe new index value.
startIndexthe first index.
finishIndexthe last index, if allowed to default, it will be set to the startIndex value, else use the TVariable::length value, to delete all the to the end.

Return Values

These methods the index value for each TVariable.


Example Use
  • C++
#include "TScript.h"

int wmain(int argc, wchar_t* argv[])
   TVariable var;
   for(int i = var.FindIndex(); i < var.length; i = var.FindIndex(TVariable::NEXT,i]))
       MessageBox((wchar_t*)var[i].WString("This value = %s"));
   return NO_ERROR;

Also See

Label Operators
Listen All
Comments (0)
Characters left: 2500
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript