Boolean Filter
From: Steve Laycock (slaycock_at_bigpond.net.au)
Date: 11/29/03
- Previous message: Dave: "newbie tstrings"
- Next in thread: Sander Martens: "Re: Boolean Filter"
- Reply: Sander Martens: "Re: Boolean Filter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Nov 2003 23:59:52 GMT
I had the bright idea of including an integer field in each record of a
table which would be descriptive of the person in the table e.g 1 st bit
set might indicate sex, 2nd bit hair color and so on so an entry with
10010011 might indicate a male with green eyes. I then tried to set a filter
in the table such as 'mask and 3 = 3' to find all males with green eyes.
Sounds OK in theory but I just get a 'type mismatch in filter condition'
error when I try it.
I have tried the obvious fixes such as table.filter := 'mask and
'+intTostr(3) + ' = ' + intTostr(3)
Any ideas ?
Cheers
Steve Lay***
- Previous message: Dave: "newbie tstrings"
- Next in thread: Sander Martens: "Re: Boolean Filter"
- Reply: Sander Martens: "Re: Boolean Filter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]