ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Lotus Notes functions / Task functions
  • Current task
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Reads the last task in a Lotus Notes or Outlook task list. This task becomes the current task.
When a task is read, 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.
Note: This function cannot be used to read the last task in an Outlook Express task list.
Example
// 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 last task
TaskLast(SessionID)
// Add the tasks found into a list
WHILE mTask.Out = False
	ListAdd(LIST_TaskList, mTask.Subject + TAB + mTask.Category)
	TaskPrevious(SessionID)
END
Syntax
<Result> = TaskLast(<Session identifier>)
<Result>: Boolean
  • True if the last task was read,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Session identifier>: Integer
Session ID to be used. This ID is returned by one of the following functions: EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
Remarks

Current task

The mTask.Out variable is used to find out whether a current task exists.
Component: wd300com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/03/2025

Send a report | Local help