Platforms to show: All Mac Windows Linux Cross-Platform
Back to DeclareFunctionMBS class.
DeclareFunctionMBS.ClearParameters
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets them all to zero/nil.
DeclareFunctionMBS.Constructor(Signature as String, FunctionPtr as Ptr)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Pass the signature and function pointer from a C function.
If signature is incorrect, the application will probably crash with stack corruption.
DeclareFunctionMBS.Invoke as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
DeclareFunctionMBS.Invoke(Parameters() as Variant) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
First calls SetParameters with the given array to set parameters.
Then invokes the function.
See also:
DeclareFunctionMBS.ParameterBoolean(Index as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can get and set value here.
(Read and Write computed property)
DeclareFunctionMBS.ParameterDouble(Index as Integer) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can get and set value here.
(Read and Write computed property)
DeclareFunctionMBS.ParameterInteger(Index as Integer) as Int64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can get and set value here.
(Read and Write computed property)
Some examples using this property:
DeclareFunctionMBS.ParameterPointer(Index as Integer) as Ptr
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can get and set value here.
(Read and Write computed property)
DeclareFunctionMBS.ParameterSingle(Index as Integer) as Single
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can get and set value here.
(Read and Write computed property)
DeclareFunctionMBS.ParameterString(Index as Integer) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
To avoid crashes, we only read strings from parameters with type string or pointer.
But you can assign a string value to all types, which may not make sense for numbers.
You can get and set value here.
(Read and Write computed property)
DeclareFunctionMBS.ParameterValue(Index as Integer) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We automatically convert values based on the parameter type.
The class stores reference to the variant when setting to make sure strings and MemoryBlocks are not freed too early.
You can get and set value here.
Please pass C Strings as Xojo strings, not CString data type.
(Read and Write computed property)
DeclareFunctionMBS.SetParameters(paramArray Parameters as Variant)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We automatically convert values based on the parameter type.
The class stores reference to the variant when setting to make sure strings and MemoryBlocks are not freed too early.
Please pass C Strings as Xojo strings, not CString data type.
See also:
DeclareFunctionMBS.SetParameters(Parameters() as Variant)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We automatically convert values based on the parameter type.
The class stores reference to the variant when setting to make sure strings and MemoryBlocks are not freed too early.
Please pass C Strings as Xojo strings, not CString data type.
See also:
The items on this page are in the following plugins: MBS Util Plugin.