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


Sets the script to be run when time changes.

Component Version macOS Windows Linux Server iOS SDK
iOSApp 7.4 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "iOSApp.SetSignificantTimeChangeScript"; Filename; ScriptName { ; Parameter } )   More


Parameter Description Example Flags
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"
Parameter The script parameter. Optional


Returns OK or error.


Sets the script to be run when time changes.
Posted when there is a significant change in time, for example, change to a new day (midnight), carrier time update, and change to or from daylight savings time.

Version 10.2 and newer stores this in preferences, so it is restored if app when app starts again after being killed in background.


Install trigger:

Set Variable [ $r ; Value: MBS( "iOSApp.SetSignificantTimeChangeScript"; Get(FileName); "Trigger"; "SignificantTimeChangeScript" ) ]

See also

Blog Entries

This function checks for a license.

Created 23th September 2017, last changed 16th March 2020

iOSApp.SetSignificantTimeChangeEvaluate - iOSApp.SetWillEnterForegroundEvaluate