Filter and Filtered propertyes

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
User avatar
CID
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 02.04.2006, 23:08
Location: Santa Fe
Contact:

Filter and Filtered propertyes

Post by CID »

dtmMain->qryProductos->Filter = "Upper(" + sColName + ") like "+ QuotedStr("%"+ AnsiUpperCase(sText)+"%");
dtmMain->qryProductos->Filter = sColName + " = "+ AnsiUpperCase(sText);

That not working. qryProductos is a TZQuery connected to a TZConnection with a SQLite database.

Always the result for that filter is the empty dataset.
why?
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

Use * instead of %.

Regards,

Ben
User avatar
CID
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 02.04.2006, 23:08
Location: Santa Fe
Contact:

Post by CID »

The '_' is '?' ??
[hr]http://devs.com.ar[hr]
User avatar
CID
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 02.04.2006, 23:08
Location: Santa Fe
Contact:

Post by CID »

% == *
_ == ?

Thanks Ben
[hr]http://devs.com.ar[hr]
Post Reply