ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Necessary rights
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Connection variable>.ModifyTask (Function)
In french: <Variable Connexion>.ModifieTâche
HFSQL Client/ServerAvailable only with this kind of connection
Modifies a scheduled task on the HFSQL server defined by the connection. This task is in an hScheduledTask variable.
Note The <Connection variable>.InfoTask function is used to retrieve the characteristics of a scheduled task in a variable of type hScheduledTask.
Example
MyConnection is Connection
MyTask is hScheduledTask

// Retrieve the characteristics of the task
MyTask = MyConnection.InfoTask(TaskID)
// Modify the task
MyTask.Hour = EDT_Time.Hour+1
MyConnection.ModifyTask(TaskID, MyTask)
Syntax
<Result> = <Connection>.ModifyTask(<Task identifier> , <Scheduled task>)
<Result>: Boolean
  • True if the scheduled task was modified,
  • False if an error occurs.
<Connection>: Connection variable
Name of the Connection variable that describes the connection for which a task must be added.
<Task identifier>: Integer
Identifier of the task to modify. This identifier is returned by <Connection variable>.AddTask.
<Scheduled task>: hScheduledTask variable
Name of the hScheduledTask variable that contains the modifications.
Remarks

Necessary rights

To modify a task, you must have:
  • the corresponding right (constant hTaskManagerRight) on the server,
  • the rights to run the command linked to the scheduled task.
The task will be run with the account of user who created the task.
Note: If the server is switched off, the scheduled task will not be performed.. The scheduled task will be performed at the next available date when the server is switched on.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/05/2024

Send a report | Local help