Platforms to show: All Mac Windows Linux Cross-Platform
GetVariantArrayMBS(VariantContainingArray as Variant) as Variant()
Function:
Queries a variant containing array for an array and returns it as an array of variant.
Example:
Notes:
Works with all arrays of objects (any type).
Raises exception if the array can't be converted or the variant contains no array.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | XojoRuntime | MBS Util Plugin | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim test() as Dictionary
test.Append new Dictionary
// this fails
Dim vv As Variant = test
Dim t() As Variant = vv
// this works!
dim v() as Variant = GetVariantArrayMBS(test)
dim dic as Dictionary = v(0)
Break
Works with all arrays of objects (any type).
Raises exception if the array can't be converted or the variant contains no array.
Blog Entries
- Variant Helper functions in MBS Xojo Plugins
- MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.0
- MBS Xojo / Real Studio Plugins, version 14.0pr4
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Util Plugin.

Links
MBS Xojo PDF Plugins