This is mnoGoSearch's cache of https://lists.gambas-basic.org/pipermail/user/2009-June/024686.html. It is a snapshot of the page as it appeared during last crawling. The current page could have changed in the meantime.

Last modified: Thu, 25 Jun 2009, 21:31:02 CEST    Size: 2904
[Gambas-user] datasource filter

[Gambas-user] datasource filter

Benoît Minisini gambas at ...1...
Thu Jun 25 21:31:02 CEST 2009


> Hello,
> how can i set the filter property of a datasource for 2 fields.
> Example:
> 	filter where id =value and nprice>dat
> id and nprice are fields, and value and dat are variables
>
>
> I can filter one of them but not them together
>
> Thank you an d sorry for my little english
>

You can do that: the filter is a SQL where clause.

MyDataSource.Filter = DB.Subst("id = &1 AND nprice > &2", value, dat)

-- 
Benoît




More information about the User mailing list