R
Richard Ohl
Hi there,
I'm trying to achieve something similar to PHP, where multi-dimensional
arrays can be used to store data conveniently.
I want to have a collection with named (string) keys. To each of those keys
a subcollection is assigned with again named keys and mixed values. The
structure would be:
"fieldName"
"type" = "sometype"
"value" = mixed value (bool, int, string...)
"position" = 18
"otherProps" = "something else"
"nextFieldName"
"type"...
I would need to be able to loop throug the collection keeping the fieldnames
and access the subcollections or, if possible, even directly get specific
data like myCollection("fielName")."type"
Is there a way to get something like that done in VBA? Any hint pointing to
the appropriate docs, examples and tipps are greatly appreciated!
Kind regards,
Richard
I'm trying to achieve something similar to PHP, where multi-dimensional
arrays can be used to store data conveniently.
I want to have a collection with named (string) keys. To each of those keys
a subcollection is assigned with again named keys and mixed values. The
structure would be:
"fieldName"
"type" = "sometype"
"value" = mixed value (bool, int, string...)
"position" = 18
"otherProps" = "something else"
"nextFieldName"
"type"...
I would need to be able to loop throug the collection keeping the fieldnames
and access the subcollections or, if possible, even directly get specific
data like myCollection("fielName")."type"
Is there a way to get something like that done in VBA? Any hint pointing to
the appropriate docs, examples and tipps are greatly appreciated!
Kind regards,
Richard