Platforms to show: All Mac Windows Linux Cross-Platform
Back to JSValueMBS class.
JSValueMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
JSValueMBS.DoubleValue(byref JSException as JSValueMBS) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns the numeric result of conversion, or NaN if an exception is thrown.
See also:
JSValueMBS.IsEqual(OtherValue as JSValueMBS, byref JSException as JSValueMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
OtherValue The second value to test.
exception: A JSValueMBS in which to store an exception, if any.
Returns true if the two values are equal, false if they are not equal or an exception is thrown.
JSValueMBS.IsInstanceOfConstructor(ConstructorFunction as JSObjectMBS, byref JSException as JSValueMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ConstructorFunction: The constructor to test against.
JSException: A JSValueMBS in which to store an exception, if any.
Returns true if value is an object constructed by constructor, as compared by the JS instanceof operator, otherwise false.
JSValueMBS.IsObjectOfClass(ClassObject as JSValueMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
ClassObject The JSClass to test against.
Returns true if value is an object and has jsClass in its class chain, otherwise false.
JSValueMBS.IsStrictEqual(OtherValue as JSValueMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
OtherValue: The second value to test.
Returns true if the two values are strict equal, otherwise false.
JSValueMBS.JSONString(indent as Integer = 0, byref JSException as JSValueMBS) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Requires Mac OS X 10.7 and newer.
The number of spaces to indent when nesting. If 0, the resulting JSON will not contains newlines. The size of the indent is clamped to 10 spaces.
JSException: A JSValueMBS in which to store an exception, if any.
Returns a JSString with the result of serialization, or nil if an exception is thrown.
See also:
JSValueMBS.ObjectValue(byref JSException as JSValueMBS) as JSValueMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
JSException: A JSValueMBS in which to store an exception, if any.
Returns the JSObject result of conversion, or nil if an exception is thrown.
JSValueMBS.StringValue(byref JSException as JSValueMBS) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
JSException: A JSValueMBS in which to store an exception, if any.
Returns a JSString with the result of conversion, or nil if an exception is thrown.
See also:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.