AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Lotus Notes / Funciones de tareas
  • Current task
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Reads the first task found 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, all you have to do is retrieve the values of the Task structure.
Caution: This function cannot be used to read the first task found in the task list of an Outlook Express messaging.
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 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
// Start an Outlook session
SessionID is int
SessionID = OutlookStartSession("MyProfile")
// 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> = 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: wd290com.dll
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local