Наверное, имелось в виду
X++:
currentNode=this.first();
while (currentNode)
{
...
currentNode=this.next();
}
PS
Кстати, такое использование
X++:
currentNode=firstNode;
for(SelectionIndex=0;SelectionIndex<this.selectionCount();SelectionIndex++)
{
currentNodeType=currentNode.applObjectType();
currentNode=this.next();
}
может привести к runtime error