Platforms to show: All Mac Windows Linux Cross-Platform
JSValueMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 16 properties
- property booleanValue as Boolean
- property context as JSContextMBS
- property doubleValue as Double
- property Handle as Integer
- property isArray as Boolean
- property isBoolean as Boolean
- property isDate as Boolean
- property isNull as Boolean
- property isNumber as Boolean
- property isObject as Boolean
- property isString as Boolean
- property isUndefined as Boolean
- property JSONString as string
- property StringValue as String
- property Tag as Variant
- property Type as Integer
- 9 methods
- method Constructor Private
- method DoubleValue(byref JSException as JSValueMBS) as Double
- method IsEqual(OtherValue as JSValueMBS, byref JSException as JSValueMBS) as boolean
- method IsInstanceOfConstructor(ConstructorFunction as JSObjectMBS, byref JSException as JSValueMBS) as boolean
- method IsObjectOfClass(ClassObject as JSValueMBS) as boolean
- method IsStrictEqual(OtherValue as JSValueMBS) as boolean
- method JSONString(indent as Integer = 0, byref JSException as JSValueMBS) as string
- method ObjectValue(byref JSException as JSValueMBS) as JSValueMBS
- method StringValue(byref JSException as JSValueMBS) as string
- 6 constants
Types
Constant | Value | Description |
---|---|---|
kJSTypeBoolean | 2 |
A primitive boolean value, one of true or false. Example |
kJSTypeNull | 1 |
The unique null value. Example |
kJSTypeNumber | 3 |
A primitive number value. Example |
kJSTypeObject | 5 |
An object value (meaning that this JSValueMBS is a JSObjectMBS). Example |
kJSTypeString | 4 |
A primitive string value. Example |
kJSTypeUndefined | 0 |
The unique undefined value. Example |
Sub classes:
Some methods using this class:
- JSContextMBS.EvaluateScript(script as string, sourceURL as String, thisObject as JSValueMBS, startingLineNumber as Integer = 1, byref JSException as JSValueMBS) as JSValueMBS
- JSContextMBS.NewDate(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSObjectMBS
- JSContextMBS.NewError(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSObjectMBS
- JSContextMBS.valueWithBool(value as boolean) as JSValueMBS
- JSContextMBS.valueWithDouble(value as Double) as JSValueMBS
- JSContextMBS.valueWithJSON(JSON as string) as JSValueMBS
- JSObjectMBS.CallAsConstructor(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
- JSObjectMBS.CallAsFunction(thisObject as JSValueMBS, arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
- JSObjectMBS.GetProperty(name as string, byref JSException as JSValueMBS) as JSValueMBS
- JSObjectMBS.GetPropertyAtIndex(propertyIndex as Integer, byref JSException as JSValueMBS) as JSValueMBS
Some properties using for this class:
- JSObjectMBS.Prototype as JSValueMBS
Some events using this class:
- JSContextMBS.FunctionCalled(functionObject as JSObjectMBS, thisObject as JSObjectMBS, arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
JSONMBS - KeychainAccessControlMBS