> Hi, > I have discovered that in a TableView or in a GridView enabled to receive > data's from a database > ....PUBLIC SUB TabWB4_Data(Row AS Integer, Column AS Integer) > > and to react to a Click.... PUBLIC SUB TabWB4_Click() > > Clicking, not only it is executed the _Click() subprogram but also the > _Data(...) again. > > This, my case, it did erase the table as the rData received from the > database, had changed at the moment of the Click. > > Just a curiosity...how can Gambas know which _Data() to call for a certain > query ? >
Gambas does not decide, it is managed by the underlying toolkit. The Data event is called each time the control needs to know the contents of a cell, whatever the reason. And the data does not come necesarilly from a database: you decide. Regards, -- Benoît ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user