[Gambas-user] for each get Key?

Fabien Bodard gambas.fr at ...626...
Thu Nov 22 14:25:29 CET 2007


Le Thursday 22 November 2007 14:13:52 smiefert at ...784..., vous avez écrit :
> when i have a collection and i try it on a dor each like this
>
> for each element in myCollection
>  print element
> next
>
> i get the value  but how can i get the key of this element  . for example
> the red in this
>
> mycollection["red"] = 2

For each element in mycollection

  print mycollection.key & "=" & element

next




More information about the User mailing list