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.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  


Sets a global property.

Component Version macOS Windows Linux Server iOS SDK
JavaScript 10.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JS.SetGlobalPropertyValue"; JSRef; Name; Value )   More


Parameter Description Example
JSRef The JavaScript reference number. $js
Name The name of the variable. "test"
Value The number or text value. 123


Returns OK or error.


Sets a global property.
Please pass value as number or text.
Container, date, time and timestamp are converted to text.
This is a simplified version of JS.SetGlobalProperty to avoid extra JSON encoding for simple values.


Sets a variable with name:

MBS( "JS.SetGlobalPropertyValue"; $js; "Hello"; 123,45 )

See also

Example Databases

Blog Entries

This function checks for a paid license.

Created 17th December 2019, last changed 26th December 2019

JS.SetGlobalProperty - JS.StringCount

💬 Ask a question or report a problem

Start Chat