|
|
|
|
- Information not retrieved: The password
- Additional information filled only by SchedulerTaskProperties
SchedulerTaskProperties (Function) In french: PlanificateurPropriétésTâche Reads the properties of a scheduled task and updates the ScheduledTask structure.
// Read the properties of MyTask SchedulerTaskProperties("MyTask") Info("The MyTask task is associated with the application " + ScheduledTask.Application)
Syntax
<Result> = SchedulerTaskProperties(<Task name>)
<Result>: Boolean - True if the task properties have been read,
- False if an error occurred (the task does not exist for example).
<Task name>: Character string Name of the task associated with the trigger to be retrieved. This name was defined when the task was created by SchedulerAddTask. Remarks Information not retrieved: The password When using SchedulerTaskProperties, the ScheduledTask.Password variable is automatically initialized with an empty string (""). During the next call to SchedulerModifyTask, the password will be stored if no new value was specifically assigned to the ScheduledTask.Password variable (by direct assignment or via SchedulerReset). Additional information filled only by SchedulerTaskProperties When using SchedulerTaskProperties, several variables of the ScheduledTask structure are automatically updated. These variables are read-only. These variables are as follows: | | ScheduledTask.ErrorCode | Integer. Last error code returned by the task (0 if the task was successfully completed or if the program has never been started). This variable is read-only and is updated with SchedulerTaskProperties. | ScheduledTask.LastRunDate | DateTime. Date of last task execution. This variable is read-only and is updated with SchedulerTaskProperties. | ScheduledTask.NextRunTime | DateTime. Date of next scheduled task execution. This variable is read-only and is updated with SchedulerTaskProperties. | ScheduledTask.TriggerCount | Integer. Number of task triggers (events that will start the task). This variable is read-only and is updated with SchedulerTaskProperties. |
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|