[Gambas-user] Multidimensionally Collection/Arrays
Stefano Palmeri
rospolosco at ...152...
Mon Jul 28 10:39:17 CEST 2008
Il lunedì 28 luglio 2008 08:31:05 Stefan Miefert ha scritto:
> Hello,
>
> how can i set and get a multidimensionally collection I can call like this
>
> mycollection['dimension1']['dimension2']
>
> Thanks for any help
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
I don't think you can create a multidimensional Collection.
Instead, you can create a multidimensional array.
This a bidimensional 10x10 array of strings.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
DIM arsMyStrings AS String[]
arsMyStrings = NEW String[10, 10]
arsMyStrings[0, 0] = "hello"
PRINT arsMyStrings[0, 0]
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Bye,
Stefano
More information about the User
mailing list