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
Function: Queries a variant containing array for an array and returns it as an array of variant.
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)
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

Feedback, Comments & Corrections

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

The biggest plugin in space...

MBS Xojo PDF Plugins

Start Chat