Hi Peti
Try
Function mdbtest()
local cnev:="Monika"
Local cFilter := "_FIRST=='"+AllTrim(cnev)+"'" // string is
"_FIRST=='Monika'"
..........
DbSetFilter( &("{|| "+ cFilter + " }") , cFilter ) //
DbSetFilter(bFilter,cFilter) , bFilter := COMPILE(cFilter)
....
Best regards
Gyula Bartal
Sulyok Péter-2 wrote:
>
> Dear Developers!
>
> I had got a problem width the dbsetfilter function when i used an mdb
> file.
> When i gave an explicit filtercond then haven't any problem, but when i
> give an variable in a filtercond, then the program generate runtime error
> message.
> Two example (sorry, my englis isn't correct).
>
>
> Example 2:
> #include "adordd.ch"
> Function mdbtest()
> local cnev:="Monika"
> ....
> dbsetfilter({||_FIRST==cnev},"_FIRST==cnev")
> ...
> return nil
> Best regards:
>
> Peti
>
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
>
--
View this message in context:
http://www.nabble.com/problem-width-dbsetfilter-tp16174232p16174587.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour