createIterator(): Iterator;
The createIterator method of the JadeBytes class creates an iterator for the JadeBytes object.
Use an iterator to remember the current byte position within the JadeBytes object. (For details about iterators, see the Iterator class.)
The following example shows the use of the createIterator method.
vars bytes : JadeBytes; iter : Iterator; byte : Byte; begin create bytes; bytes.setContent("JADE".Binary); iter := bytes.createIterator; while iter.next(byte) do write byte; // Writes 74 65 68 69 in turn endwhile; epilog delete iter; delete bytes; end;