Hi, I added a new syntax for creating collection in Gambas 3, revision #1699.
Here it is: [ <key1> : <value1> , <key2> : <value2> , ... ] For example: Dim cCol As Collection = ["blue": &H0000FF&, "white": &HFFFFFF&, "red": &HFF0000&] Print cCol["blue"] --> 255 Note that as Gambas functions cannot take more than 63 arguments, you cannot initialize the collection with more than 31 elements. Regards, -- Benoit Minisini ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user