Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo:
> DIM Dict AS NEW Collection
> DIM Element AS String
> 
> Dict["Blue"] = 3
> Dict["Red"] = 1
> Dict["Green"] = 2
> 
> FOR EACH Element IN Dict
>   PRINT Element;
> NEXT
> 

Salut,

did you ever more then run that code ? debug ? or looked whats a
Collection ?

OK, "Blue","Red" and "Green" are the KEY for the Collection Element,
and so they declared and asigned.

try that!

PUBLIC SUB Main()                     
   DIM Dict AS NEW Collection
   DIM Element AS String
   
   Dict["Blue"] = 3
   Dict["Red"] = 1
   Dict["Green"] = 2
   
   FOR EACH Element IN Dict
     PRINT Element
     PRINT Dict.Key
   NEXT
END 

 
-- 
Charlie


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to