ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Windows Scheduler functions
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
SchedulerDeleteTask (Function)
In french: PlanificateurSupprimeTâche
Deletes a scheduled task.
Example
// Find out the name of the scheduled tasks
sTaskList is string = SchedulerTaskList()
IF sTaskList = "" THEN
Info("No scheduled task is found on this computer")
ELSE
Info("Delete the existing tasks to start from zero")
FOR n = 1 TO StringCount(sTaskList, CR) + 1
// Delete each scheduled task
SchedulerDeleteTask(ExtractString(sTaskList, n, CR))
END
// Check whether all the tasks have been deleted
sTaskList = SchedulerTaskList()
IF sTaskList <> "" THEN
Info("Some scheduled tasks have not been deleted. There are: " + sTaskList)
END
END
Syntax
<Result> = SchedulerDeleteTask(<Task name>)
<Result>: Boolean
  • True if successful,
  • False if an error occurred (the task does not exist or the task cannot be deleted).
<Task name>: Character string
Name of the task to delete. This name was defined when the task was created by SchedulerAddTask.
Business / UI classification: Business Logic
Component: wd290std.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/29/2022

Send a report | Local help