Posted: Mon Nov 14, 2005 1:27 am Post subject: Troubles with index
Apprentice
Joined: 24 Oct 2005 Posts: 26
Hi,
i have the next code:
SET J = CARDINALITY(OutputRoot.XML.infosIdFound_reste[]);
SET I = 1;
WHILE I <= J DO
SET OutputRoot.XML.infosIdFound_reste[I] = NULL;
SET I = I + 1;
END WHILE;
It's a single code which clean a tree with Nulls. I've follow the process with the debugger. The cardinality is 6. The trouble arrive when the i index has the value 4. The code error is 'array subscript error' when it try 'SET OutputRoot.XML.infosIdFound_reste[I] = NULL;'. Anybody know can it happend? It's very strange...
You're right!. Everytime i set nulls into the tree, the element disappear of memory. I have put:
SET J = CARDINALITY(OutputRoot.XML.infosIdFound_reste[]);
SET I = 1;
WHILE I <= J DO
SET OutputRoot.XML.infosIdFound_reste[1] = NULL;
SET I = I + 1;
END WHILE;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum