![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersTScript APIIndex Operators |
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 );
| 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. |
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());
Copyright © 2007-2009, Ekky Software Pty Ltd.