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: 10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2    Statistic    FMM    Blog  

JS.StringCount

Queries global string counter.

Component Version macOS Windows Linux Server iOS SDK License
JavaScript 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes Paid
MBS( "JS.StringCount"; JSRef )   More

Parameters

Parameter Description Example
JSRef The JavaScript reference number. $js

Result

Returns number or error.

Description

Queries global string counter.
A fresh JavaScript engine already has about 1000 strings.

Examples

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

Release notes

Blog Entries

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


JS.SetGlobalPropertyValue - JS.TimeToDateComponents

Feedback: Report problem or ask question.


Start Chat