BizBlox
GetNext Method (currentId, foundCurrent, atEnd)
Namespacespixolut.BizBloxDOCollectionGetNext(Guid, Boolean%, Boolean%)
BizBlox
Find the next Item in the DOCollection after the Item with the specified UID.
Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
currentId (Guid)
The UID of the current Item
foundCurrent ( Boolean %)
Returns true if the current Item has been found in the Collection. This is designed for dynamic collections, where Items may be removed.
atEnd ( Boolean %)
Returns true if the current Item is the last Item in the Collection.
Return Value
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.
Remarks

This method is used in conjunction with GetPrevious for navigating DOCollections.

Examples
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

Assembly: pixolut.BizBlox (Module: pixolut.BizBlox) Version: 1.8.5.0