Platforms to show: All Mac Windows Linux Cross-Platform

GetVariantAsDictionaryArrayMBS(v as variant) as Dictionary()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method System MBS Util Plugin 20.4 Yes Yes Yes Yes No
Function: Casts a variant to a dictionary array.
Dim d As New Dictionary
Dim v() As Variant
v.Append d
v.Append Nil

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

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

Blog Entries

Feedback, Comments & Corrections

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

The biggest plugin in space...

MBS FileMaker Plugins