Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Schedule.Release

Releases schedule reference.

Component Version macOS Windows Linux Server iOS SDK
Schedule 5.2 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "Schedule.Release"; ScheduleRef )   More

Parameters

Parameter Description Example
ScheduleRef The reference for a scheduled script call or sql query as returned by Schedule.StartScript* functions or Schedule.ExecuteSQL* functions. $ref

Result

Returns OK or error.

Description

Releases schedule reference.
This will free all memory used and stops the schedule.

Examples

Release now:

MBS( "Schedule.Release"; $ScheduleRef )

Start a script once in 10 seconds and release:

Set Variable[ $ref; MBS( "Schedule.StartScriptAfterDelay"; 10; Get(FileName); "testScript"; "Hello World" ) ]
Set Variable[ $r; MBS("Schedule.Release"; $ref) ]
# script will never be called as schedule was destroyed!

See also

Example Databases

Blog Entries

This function checks for a license.

Created 20th May 2015, last changed 27th May 2015


Schedule.List - Schedule.ReleaseAll