[Gambas-user] problem with DataSource

Benoit Minisini gambas at ...1...
Wed Aug 23 09:13:59 CEST 2006


On Wednesday 23 August 2006 08:39, juanra wrote:
> Hello,
>
> As I can program a button to do the search of a registry using
> DataSource and Datacontrols?
>
> Just as the DataSource.MoveFirst move to the first registry of the
> table. I want to introduce a text in a Textbox and when pressing the
> button that leave all the corresponding registries in the DataControls.
>
> Something similar to ("DataSource.Search")
>
>
> Thanks,
>

You can try to set the Filter property of the DataSource.

For example, if your textbox must filter your data by name, you can do:

  MyDataSource.Filter = DB.Subst("name LIKE &1", "%" & MyTextBox.Text & "%")

It should work.

Thanks for testing the gb.db.form component! ;-)

Regards,

-- 
Benoit Minisini





More information about the User mailing list