getCollection(): Collection;
The getCollection method of the Iterator class returns a reference to the collection associated with the receiver. A null value is returned if no collection is associated with the receiver.
The code fragments in the following examples show the use of the getCollection method.
if iter.getCollection = null then app.msgBox("No collection defined", "Error", MsgBox_OK_Only); endif; lock(iter.getCollection, Share_Lock, Transaction_Duration, 1000);