sintax error for a filter

Post Reply
User avatar
Silvio.Falconi
Posts: 7138
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

sintax error for a filter

Post 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?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
MaxP
Posts: 90
Joined: Thu Jul 12, 2007 2:02 pm
Has thanked: 1 time
Contact:

Re: sintax error for a filter

Post by MaxP »

Hi Silvio,

if MARRIED field is logical type

Code: Select all | Expand

cFilter:= "MARRIED=.T."
Massimo
User avatar
Silvio.Falconi
Posts: 7138
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: sintax error for a filter

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply