Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

JavaScript.EvaluateScript

Evaluate a string of JavaScript code.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 5.4 Yes No Yes, macOS only No Yes

MBS( "JavaScript.EvaluateScript"; JavaScriptContext; Script { ; URL; startingLineNumber } )

Parameters

Parameter Description Example value
JavaScriptContext The reference number of the javascript context. $Context
Script The script to evaluate.
URL Optional
The source URL for this script.
A URL for the script's source file. Used by debuggers and when reporting exceptions. This parameter is informative only: it does not change the behavior of the script.
startingLineNumber Optional
An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions. The value is one-based, so the first line is line 1 and invalid values are clamped to 1.
1

Result

Returns text or error.

Description

Evaluate a string of JavaScript code.

JavaScript.CheckScriptSyntax   -   JavaScript.GetProperty

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins