(Contents)(Previous)(Next)

GetPrev()

Description: Gets the previous item in the list
Syntax: object.GetPrev()
Parameters:
list Required, the list object
Remarks: Returns the previous 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 GetLast() or calls to GetFirst()/GetNext().
Returns: An object of the appropriate type.
Example:
Dim session As Object

Dim user As Object

Dim task As Object

Dim tasks As Object

Set session = CreateObject("OfficeTalk.Session")

Call session.Logon(login name, password)

Set user = session.FindUserByLoginName("fred")

Set tasks = user.Tasks

Set task = tasks.GetLast

MsgBox task.Description

Do While Not task Is Nothing

MsgBox task.Description

Set task = tasks.GetPrev

Loop


Next