PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a new scheduled task to the application (site or Webservice).
Caution: The created scheduled task is not persistent. It will be deleted when restarting the WEBDEV application server or when deploying the site.
Example
// Programs the task so that it is run every hour
MyScheduledTask is appServerScheduledTask
MyScheduledTask..Name = "MyTask"
MyScheduledTask..Procedure = MyProc
MyScheduledTask..Month = "*"
MyScheduledTask..DayOfMonth = "*"
MyScheduledTask..DayOfWeek = "*"
MyScheduledTask..Hour = "*"
MyScheduledTask..Minute = "0"

IF NOT AppServerAddScheduledTask(MyScheduledTask) THEN
// Error case (if a task with the same name already exists for example)
END
Syntax
<Result> = AppServerAddScheduledTask(<Scheduled Task>)
<Result>: Boolean
  • True if the scheduled task was added.
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Scheduled Task>: appServerScheduledTask variable
Name of appServerScheduledTask variable corresponding to the description of the scheduled task to add.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 22
Comments
Click [Add] to post a comment