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
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 (with quotes)
Name of the task to delete. This name was defined when the task was created by SchedulerAddTask.
Remarks
The SchedulerXXX functions are not available in Windows NT if a version earlier than Internet Explorer 5.0 is installed.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment