Hi guys, I'm trying to figure out if there is a way to do this in gambas.

In python, you can have a dictionary object (declared like "list =
[key1:value1,key2:value2,key3:value3]")
As you can see, it's like a string[] where each object is a key=value pair.

I'm wondering if there is a way to emulate something like this in gambas2



The idea is to have maybe a list like
option1=window1
option2=window2
option3=window3

Then in my app, the key value of each component would be a button and
the value would be a window name which is to be opened when the user
clicks the respective button

Can someone think of a possible solution?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to