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
JS.Release
Frees the JavaScript engine.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScript | 10.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
(old name: JS.Free)
Parameters
Parameter | Description | Example |
---|---|---|
JSRef | The JavaScript reference number. | $js |
Result
Returns OK or error.
Description
Frees the JavaScript engine.Examples
Evaluate some expressions:
Set Variable [ $js ; Value: MBS( "JS.New" ) ]
Set Variable [ $r ; Value: MBS( "JS.Evaluate"; $js; "4+5") ]
Show Custom Dialog [ "Result" ; $r ]
Set Variable [ $r ; Value: MBS( "JS.SetGlobalProperty"; $JS; "test"; "\"Hello World\"" ) ]
Set Variable [ $r ; Value: MBS( "JS.Evaluate"; $js; "test + test;") ]
Show Custom Dialog [ "Result" ; $r ]
Set Variable [ $r ; Value: MBS( "JS.Release"; $JS ) ]
Cleanup script:
If [ Length($$js) > 0 ]
Set Variable [ $r ; Value: MBS( "JS.Release"; $$js ) ]
Set Variable [ $$js ; Value: "" ]
End If
See also
- JS.AddFileMakerEvaluateFunction
- JS.AddFileMakerRunScriptFunction
- JS.AddFileMakerSQLFunction
- JS.AddFunction
- JS.CallFunction
- JS.EvaluateToString
- JS.GetGlobalProperty
- JS.New
- JS.ReleaseAll
- JS.TimeToUTCDate
Release notes
- Version 10.5
- Added AVExport.ReleaseAll, AVRecorder.ReleaseAll, CoreML.ReleaseAll, DNSLookup.ReleaseAll, Dictionary.ReleaseAll, FM.SQL.ReleaseAll, JS.ReleaseAll, JavaScript.ReleaseAll, LDAP.ReleaseAll, PDFKit.ReleaseAll, PKCS12.ReleaseAll, PKCS7.ReleaseAll, PKey.ReleaseAll, SSH.ReleaseAll, WinSendMail.ReleaseAll, WindowsML.ReleaseAll, WordFile.ReleaseAll, and X509.ReleaseAll.
- Renamed JS.Free to JS.Release for consistency. Old name stays valid.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 10.5pr7
- New in the MBS FileMaker Plugin 10.1
- FileMaker and JavaScript - the perfect combination
- CRC function in FileMaker using JavaScript
- Our JavaScript engine for FileMaker
FileMaker Magazin
This function checks for a license.
Created 7th December 2019, last changed 29th October 2020
