Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets close trigger.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Window | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
Ref | Pass window or web viewer reference number. | |
Filename | The database file name where the script is located. | "test.fmp12" |
ScriptName | The script name. | "MyScript" |
Returns OK or error.
Create web viewer and set close trigger:
Set Variable [ $$web ; Value: MBS("WebView.CreateWithControl"; 0; "placeholder"; 1) ]
Set Variable [ $r ; Value: MBS("Window.SetCloseTrigger"; $$web; Get(FileName); "Closed") ]
This function is free to use.
Created 20th January 2022, last changed 20th January 2022