REALCreateArray with dictionary?

Create array of dictionary via plugin?

If we use REALCreateArray with kTypeObject, but the resulting array shows as Object() array in debugger and can’t be assigned to dictionary.

e.g. we return “result as Variant”, where variant for some call contains an array of dictionary.
dim items() as dictionary = result

will raise TypeMismatchException.
Any idea how to improve this?

As plugin only creates object/variant arrays, we made feedback case feedback://showreport?report_id=61541 to allow conversion from array of variant/object to array of dictionary.

The short answer is: the typecasting system of Xojo is incomplete.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.