[Gambas-user] Anonymous Collection

Benoît Minisini gambas at ...1...
Sat May 14 16:29:22 CEST 2011


> hi,
> i wonder if there is a way to declare an "anonymous collection" just as
> one would do it with arrays:
> FOR EACH s IN ["a", "b"]
>    PRINT s
> NEXT
> 
> regards,
> tobi
> 

In Gambas 3, you can do that by using the following syntax:

	["key1": value1, "key2": value2 ... ]

-- 
Benoît Minisini




More information about the User mailing list