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
Var test() as Dictionary
test.Append new Dictionary

// this fails
Var vv As Variant = test
Var t() As Variant = vv

// this works!
Var v() as Variant = GetVariantArrayMBS(test)
Var 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...