[Lazarus] Filtering on date with TDbf

Guionardo Furlan guionardo at gmail.com
Tue Jan 31 13:55:35 CET 2012


This code works in delphi?
Comparing strings doesn´t work for dates, I guess.
Using mm/dd/yyyy, "05/01/2012" is less/before than "05/02/2011"

2012/1/30 Koenraad Lelong <lazarus1 at de-brouwerij.be>:
> Hi,
>
> Lazarus 0.9.30
>
> I want to filter a TDbf. The field is a date.
> When I try in Filter in Lazarus :
> DATUM >= '1/1/2011'
>  or
> DATUM >= "1/1/2011"
>  or
> DATUM >= '1.1.2011'
>
> In my application :
> tblTik.Filter:='DATUM>='''+DateToStr(XferStart)+'''';
>
> I get an error :
> Index based on unknown field ">=".
>
> What am I doing wrong ?
>
> Regards,
>
> Koenraad Lelong.
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



-- 
Timeo hominem unius libri
Cogito ergo sum - Carpe diem

[]s
Guionardo Furlan
http://guionardo.blogspot.com
http://www.guionardofurlan.com.br




More information about the Lazarus mailing list