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

Schedule.SetAutoRelease

Sets if scheduled item is removed from list of schedules automatically after execution.

Component Version macOS Windows Linux Server iOS SDK
Schedule 5.2 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "Schedule.SetAutoRelease"; ScheduleRef; Value )   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
Value The new setting. 1 to free schedule item after it run (and has no repeating), 0 to not free it. 1

Result

Returns OK or error.

Description

Sets if scheduled item is removed from list of schedules automatically after execution.

Examples

Set schedule to be destroyed after last execution:

MBS( "Schedule.SetAutoRelease"; $ScheduleRef; 1 )

Set schedule to be not destroyed after last execution:

MBS( "Schedule.SetAutoRelease"; $ScheduleRef; 0 )

See also

This function checks for a license.

Created 21st May 2015, last changed 27th May 2015


Schedule.ReleaseAll - Schedule.SetEnabled