Reads the task found after the current task in the task list of a Lotus Notes or Outlook messaging. This task becomes the current task.
When reading a task, the data of this task is updated in the
Task structure. To retrieve the data of the current task, simply retrieve the values of the
Task structure.
Caution: This function cannot be used to read the task found after the current task in the task list of an Outlook Express messaging.
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", "MarsServer", "email/julia.nsf",...
"C:\Users\Julia\AppData\Local\Lotus\Notes\Data\user.id")
// Read the first task
TaskFirst(SessionID)
// Add the tasks found into a list
WHILE mTask.Out = False
ListAdd(LIST_TaskList, mTask.Subject + TAB + mTask.Category)
TaskNext(SessionID)
END
Syntax
<Result> = TaskNext(<Session identifier>)
Remarks
The mTask.Out variable is used to find out whether a current task exists.