Page 1 of 1

sintax error for a filter

Posted: Thu Feb 13, 2025 8:50 pm
by Silvio.Falconi
I must set a filter on tdatabase

cFilter:= "MARRIED='.T.'"

Image

Code: Select all | Expand

rror description: Error BASE/1071  Argument error: =
   Args:
     [   1] = L   .T.
     [   2] = C   .T.

Stack Calls
===========
   Called from: .\source\classes\database.prg => (b)COMPILE( 1305 )
he tells me it's wrong why?

Re: sintax error for a filter

Posted: Fri Feb 14, 2025 10:11 am
by MaxP
Hi Silvio,

if MARRIED field is logical type

Code: Select all | Expand

cFilter:= "MARRIED=.T."
Massimo

Re: sintax error for a filter

Posted: Fri Feb 14, 2025 10:18 am
by Silvio.Falconi
MaxP wrote: Fri Feb 14, 2025 10:11 am Hi Silvio,

if MARRIED field is logical type

Code: Select all | Expand

cFilter:= "MARRIED=.T."
Massimo
Sorry I found the solution tonight