Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  

JS.Free

Frees the JavaScript engine.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 10.0 Yes Yes Yes Yes Yes
MBS( "JS.Free"; JSRef )   More

Parameters

Parameter Description Example value
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.Free"; $JS ) ]

Cleanup script:

If [ Length($$js) > 0 ]
    Set Variable [ $r ; Value: MBS( "JS.Free"; $$js ) ]
    Set Variable [ $$js ; Value: "" ]
End If

See also

Example Databases

Blog Entries

Created 7th December 2019, last changed 15th January 2020


JS.EvaluateToString   -   JS.GetGlobalProperty

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins