On Fri, 09 Oct 2009, Itamar Lins wrote:

Hi,

> My reports now with set filter fail, for exemple, if I use date criteria.
> set date to brit
> inicio := fim := ctod('23/10/09')
> Set Filter to pd->data_compr >= inicio .and. pd->data_compr <= fim
> the "set filter" not works, get all records of data base.
> Testing with  * $Id: ChangeLog 12672 2009-10-07 23:27:38Z vouchcac $
> Before, works fine, but I don't know the version of SVN what run ok. :-(

If you need any help then please create self contain example.
Otherwise I have to think it nothing more then problem your created
yourself in your own code.
I created this example:

   proc main()
      field F
      local inicio, fim
      set date to brit
      dbcreate("_tst",{{"F","D",8,0}})
      use _tst
      dbappend(); F := ctod('22/10/09')
      dbappend(); F := ctod('23/10/09')
      dbappend(); F := ctod('24/10/09')
      dbappend(); F := ctod('25/10/09')
      dbgotop()
      while !eof()
         ? recno(), F
         dbskip()
      enddo
      ?
      inicio := ctod('23/10/09')
      fim    := ctod('24/10/09')
      set filter to F >= inicio .and. F <= fim
      dbgotop()
      while !eof()
         ? recno(), F
         dbskip()
      enddo
   return

and it works perfectly.

It's very important for us to have user feedback with information
about real problems so we can fix them. But false bag reports reduce
the time we can invest in Harbour development so I kindly ask you and
all other Harbour users to make at least even basic verification of
the problem during creating self contain example and then check if
this example compiled by Clipper gives different results and if yes
then finally report the problem to the list attaching the _self_contain_
code example which developers can compile to easy verify the problem.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to