ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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 first task in a Lotus Notes or Outlook task list. 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, all you have to do is retrieve the values of the Task structure.
Warning: This function does not read the first task in the task list of an Outlook Express mailbox.
Example
// Ouverture d'une session Lotus Notes
IDSession is int
IDSession = EmailStartNotesSession("MotDePasse", "ServeurMars", "mail\julie.nsf",...
					"C:\Users\Julie\AppData\Local\Lotus\Notes\Data\user.id")

// Lecture de la première tâche
TaskFirst(IDSession)
// Ajout des tâches trouvées dans une liste
WHILE mTask.Out = False
	ListAdd(LISTE_ListeTâche, mTask.Subject + TAB + mTask.Category)
	TaskNext(IDSession)
END
// Ouverture d'une session Outlook
IDSession is int
IDSession = OutlookStartSession("MonProfil")
// Lecture de la première tâche
TaskFirst(IDSession)
// Ajout des tâches trouvées dans une liste
WHILE mTask.Out = False
	ListAdd(LISTE_ListeTâche, mTask.Subject + TAB + mTask.Category)
	TaskNext(IDSession)
END
Syntax
<Result> = TaskFirst(<Session identifier>)
<Result>: Boolean
  • True if the first task was read,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer
Session ID to be used. This identifier is returned by 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: 09/21/2024

Send a report | Local help