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
- Schedule.EvaluateAfterDelay
- Schedule.EvaluateAtTime
- Schedule.EvaluateAtTimeStamp
- Schedule.EvaluateOnIdle
- Schedule.ExecuteSQLAfterDelay
- Schedule.ExecuteSQLAtTime
- Schedule.ExecuteSQLOnIdle
- Schedule.ReleaseAll
- Schedule.StartScriptAtTime
- Schedule.StartScriptAtTimeStamp
Example Databases
- MongoDB/MongoDB Audit
- Schedules/OnRecordEdit Trigger
- Window/Schedule Moved Trigger
- Window/Window Activation Trigger
Blog Entries
- Window Activation Trigger
- Script trigger for moving window
- OnRecordEdit Trigger in FileMaker
- Record Creation Script Trigger
This function checks for a license.
Created 20th May 2015, last changed 27th May 2015