Find the next Item in the DOCollection after the Item with the specified UID.
| C# | Visual Basic | Visual C++ |
public DataObject GetNext( Guid currentId, ref bool foundCurrent, ref bool atEnd )
Public Function GetNext ( _ currentId As Guid, _ ByRef foundCurrent As Boolean, _ ByRef atEnd As Boolean _ ) As DataObject
public: DataObject^ GetNext( Guid currentId, bool% foundCurrent, bool% atEnd )
If the Item with UID currentId is not found in the DOCollection, or if it
is the last Object in the DOCollection, the method returns a null value.
Otherwise, it returns the next DataObject in the Collection.
This method is used in conjunction with GetPrevious for navigating DOCollections.
Dim sColl as New StudentCollection
sColl.FindAll()
If sColl.Count > 0 Then
Dim currentStudent As Student = sColl(0)
Dim foundCurrent As Boolean = False
Dim atEnd As Boolean = False
Dim nextStudent As Student = sColl.GetNext(currentStudent, foundCurrent, atEnd)
End If