Returns the characteristics of a scheduled task in a hScheduledTask
variable. You can for example read some characteristics of scheduled task in order to modify them later with HModifyTask
MyTask is hScheduledTask
// Retrieve characteristics of scheduled task
MyTask = HInfoTask(MyConnection, TaskID)
// Modify the scheduled task
MyTask.Hour = EDT_Time.Hour + 1
HModifyTask(MyConnection, TaskID, MyTask)
<Result> = HInfoTask(<Connection> , <Scheduled task>)
<Result>: hScheduledTask variable
hScheduledTask variable containing the characteristics of the specified scheduled task.
<Connection>: Character string or Connection variable
Connection for which a task must be managed. This connection corresponds to:
<Scheduled task>: Integer
Identifier of scheduled task, returned by HAddTask and HListTask.
- To check the existence of a task, use HListTask: simply check if the task identifier is among the tasks returned by HListTask.
- To retrieve the characteristics of a scheduled task, you must have the rights to connect (hRightsConnection or hRightsEncryptedConnection) to the database that contains the stored procedure.