[Gambas-user] Bug or Feature ?
Benoît Minisini
gambas at ...1...
Mon Jul 20 14:52:09 CEST 2009
> 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
More information about the User
mailing list