Returns True if there are more elements to retrieve from the enumeration. While this method returns true, the CommonInterfaces.IIterator.NextElement method should not raise an exception.
Namespace: InterfaceCollections
Delphi |
public |
Return Value
Type: Boolean
IIterator.HasMoreElements
IObjectIterator.HasMoreElements
The following code gives a sample implementation from the TListIterator object, List is the TList that is supplying the underlying elements and Index is a hidden index for the enumeration: Delphi |
begin |