Returns the next object item in the enumeration (Objects property of TStrings). If there are no more items, the method will raise an exception. To check if there are more items, use the HasMoreElements method. The NextElementO method advances its place in the enumeration and then returns that item. Every call to NextElementO returns a new item (until the end of the enumeration). If you wish to access the current item multiple times in a loop, use the CurrentElementO method.
This method is part of the CommonInterfaces.IObjectIterator interface.
Note |
---|
The NextElement method implements the NextElement method for the CommonInterfaces.IStringIterator interface, and the NextElementP method implements the NextElement method for the CommonInterfaces.IIterator interface. |
Namespace: RSInterfaceCollections
Delphi |
public |
Return Value
Type: TObject