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: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Queries global object counter.

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


Parameter Description Example
JSRef The JavaScript reference number. $js


Returns number or error.


Queries global object counter.
A fresh JavaScript engine already has about 400 objects for the built-in functionality.


Query memory statistics:

Set Variable [ $JS ; Value: MBS( "JS.New" ) ]
Show Custom Dialog [ "JavaScript memory statistics:" ; MBS( "JS.StringCount"; $JS ) & " strings" & ¶ & MBS( "JS.ObjectCount"; $JS ) & " objects" ]

See also

Blog Entries

Release notes

Created 31st January 2020, last changed 19th April 2020

JS.Now   -   JS.SetGlobalProperty

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins