[Gambas-user] for each. How get the key and the value?

Benoit Minisini gambas at ...1...
Sun Mar 2 13:39:02 CET 2008


On mercredi 27 février 2008, smiefert at ...784... wrote:
> Hello,
>
> how can i get key and value  in a for each ?
>
>
> foreach myCollection
>    print key ?!
> next
>

for each Value in TheCollection
  print "Key = "; TheCollection.Key;"  Value = "; Value
next

-- 
Benoit Minisini




More information about the User mailing list