P
Pierre
Hello,
In a vb collection, I would like to retrieve the key of each items.
Example :
dim col as Collection
col("k1")="a"
col("k2")="b"
.....
for each k in col
'here k equals "a", "b", ......
'and I would like to get "k1", "k2", ....
next
The "for each" structure gives the item itself and not its ket (in vbscript
we get the key).
How to do to get the key, or to retrieve the key from the item ?
Thanks.
Regards.
Pierre.
In a vb collection, I would like to retrieve the key of each items.
Example :
dim col as Collection
col("k1")="a"
col("k2")="b"
.....
for each k in col
'here k equals "a", "b", ......
'and I would like to get "k1", "k2", ....
next
The "for each" structure gives the item itself and not its ket (in vbscript
we get the key).
How to do to get the key, or to retrieve the key from the item ?
Thanks.
Regards.
Pierre.