Platforms to show: All Mac Windows Linux Cross-Platform

GetVariantArrayMBS(VariantContainingArray as Variant) as Variant()

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method XojoRuntime MBS Util Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries a variant containing array for an array and returns it as an array of variant.
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

Xojo Developer Magazine

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...