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


Queries property value as text.

Component Version macOS Windows Linux Server iOS SDK
JavaScriptWebKit 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JavaScript.GetProperty"; JavaScriptContext; PropertyName )   More


Parameter Description Example
JavaScriptContext The reference number of the javascript context. $Context
PropertyName The name of the property. "FirstName"


Returns text or error.


Queries property value as text.


Set and query property:

Set Variable [ $js ; Value: MBS( "JavaScript.New" ) ]
Set Variable [ $r ; Value: MBS( "JavaScript.SetProperty"; $js; "FirstName"; "Joe" ) ]
Show Custom Dialog [ "Result" ; MBS( "JavaScript.GetProperty"; $js; "FirstName" ) ]
Set Variable [ $r ; Value: MBS( "JavaScript.Release"; $js ) ]

See also

Release notes

Example Databases

This function checks for a license.

Created 5th November 2015, last changed 9th February 2023

JavaScript.EvaluateScript - JavaScript.GetPropertyJSON