Description: | Gets the next item in the list |
Syntax: | object.GetNext() |
Parameters: | |
list | Required, the list object |
Remarks: | Returns the next item in the list. If there are no items in the list or you do not have at least visible access to any of the items in the list then Nothing is returned. Note this call must have been preceded by a call to GetFirst() or calls to GetLast()/GetPrev() |
Returns: | An object of the appropriate type. |
Example: |
Dim user As Object
Dim appts As Object
Dim appt As Object
Set session = CreateObject("OfficeTalk.Session")
Set user = session.Logon(login name, password)
Set appts = user.Appointments
Set appt = appts.GetFirst
While Not appt Is Nothing
MsgBox appt.Name
Set appt = appts.GetNext
Wend