To identify the value of an item of a node structure, you can either position on the correct register (e.g. Begin, MoveTo, End) or use an index.
Syntax: NodeStructureID[Index].ItemId
Example: x = MY_NODE_STRUCTURE[1].MY_ITEM
Note: The advantage of using the index is that the current position of the node structure is not modified. That means you do not need to recover the position after moving (if relevant) and the system does not need to update the position pointers (specially if the node structure you access has more nodes beneath it).
No comments:
Post a Comment