Platforms to show: All Mac Windows Linux Cross-Platform

GetVariantAsDictionaryArrayMBS(v as variant) as Dictionary()

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method XojoRuntime MBS Util Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Casts a variant to a dictionary array.
Example
Var d As New Dictionary
Var v() As Variant
v.Append d
v.Append Nil

Var va as Variant = v
'Dim dic() As Dictionary = va // type mismatch exception
Var dic() As Dictionary = GetVariantAsDictionaryArrayMBS(va) // works

Break

Raises exception if variant does not have an object/variant array.
If it contains a non-dictionary object, we raise an exception.

Blog Entries

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


The biggest plugin in space...