Platforms to show: All Mac Windows Linux Cross-Platform

GetVariantArrayMBS(VariantContainingArray as Variant) as Variant()
Type Topic Plugin Version macOS Windows Linux Targets
global method System MBS Util Plugin 14.0 Yes Yes Yes All
Function: 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
Notes:
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...




Links
MBS FileMaker blog