Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From: Beno?t Minisini <gam...@users.sourceforge.net> > A 'MinDate' property could be a good idea... > And a 'MaxDate' too, why not? HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! (i still remenber that mail ok)
> From: Tobias Boege <tabo...@gmail.com> >> does gambas provide collections in same way of java does? > No, in Gambas, a Collection is a hash table and not a set (which is what > Java seems to have). You do: > > cCollection["key"] = value ' value is a Variant ok, that ilustrate me how i can use it , does that bette rather than cColection.add(value, "key") but my problem are due my objects have two parts, id and descripcion, i want to fill the combobox id with id of my tabls,and the respective vlue of id comboboxeds (overrides with id from tables) with my values of collection object > do the following: create a String[] aResult or something. Then use the > hresult["whatever_id"], converted to an Integer, as index: > > aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) > umm this mees might work like the collection idea also > Later, return that String[] as you do. > > Then, when filling the ComboBox, all the elements you didn't assign anything > to (the missing "whatever_id"'s will be Null): > > Dim aResult As String[] = GetTheResultArray() > Dim iInd As Integer > > For iInd = 0 To aResult.Max > If Not aResult[iInd] Then Continue > myComboBox.Add(aResult[iInd], iInd) > Next > > Whether this works (your question below) or how it will look like if some > indices in the ComboBox are missing, I don't know. Test it! i will test now the code u paste me.. and reply later... > Message: 8 > From: Tobias Boege <tabo...@gmail.com> > This page documents inline collections (as the title says). Look at the > Collection class documentation[0]. > [0] http://gambasdoc.org/help/comp/gb/collection?v3 thanks for the link! reading... ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user