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.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets property value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScriptWebKit | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
JavaScriptContext | The reference number of the javascript context. | $Context |
PropertyName | The name of the property. | "FirstName" |
Value | The new text value. | "Joe" |
Returns OK or error.
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 ) ]
This function checks for a license.
Created 5th November 2015, last changed 9th February 2023