Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

JS.GetGlobalPropertyValue

Queries global property.

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

Parameters

Parameter Description Example
JSRef The JavaScript reference number. $js
Name The name of the variable. "test"

Result

Returns value or error.

Description

Queries global property.
Returns value as number, text or JSON encoded.
This is a simplified version of JS.GetGlobalProperty to avoid extra JSON encoding for simple values. Objects are still returned JSON encoded.

Examples

Queries a number value:

MBS( "JS.GetGlobalPropertyValue"; $js; "Hello")

See also

Example Databases

Blog Entries

This function checks for a license.

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


JS.GetGlobalProperty - JS.InitModules

💬 Ask a question or report a problem