[Gambas-user] Collection of String[2]

Fabien Bodard gambas.fr at ...626...
Sun Jan 17 00:05:26 CET 2010


2010/1/15 Pino Zollo <pinozollo at ...626...>:
> Please, where am I wrong ?
> For Element[1] and Element[0]  I get always the same values....
>
> STATIC PUBLIC Lista AS NEW Collection
> ...
> ...
>
> PUBLIC FUNCTION xyz ...
>
>  DIM Element AS String[2]
>  DIM Parti AS String[]
> ...
>  DO WHILE...
      Parti = NEW String[2]
>    Parti[0] = myStruc.Value(0)
>    Parti[1] = myStruc.Value(2)
>    Lista.Add(Parti, myStruc.Value(1))
>  LOOP
> .....
>  FOR EACH Element IN Lista
>              PRINT Lista.Key;; "   ";; Element[1];; "   ";; Element[0]
>  NEXT
>
> END
> ------------------------
>
> Many Thanks in advance
> Pino
> --
> Key ID: 0xF6768208
> Key fingerprint = B16D 0A7C 5B29 A334 CE6A  71F6 EAF8 3D88 F676 8208
> Key server: hkp://wwwkeys.eu.pgp.net
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list