Problem with setfilter

poppinspoppins Member Posts: 647
Hi everyone,

I want to set a filter on a record:
SETFILTER(Code,'<>%1',txtFilter);
I am using a function to generate the filter and sometimes it gives something like A|B
The problem is that the filter is not applied correctly.
I tried Message(MyRec.GETFILTERS); and I got the following : Code <> 'A|B'.
This is leading to false results (it looks like it is considering A|B as a code not a filter , not <>A & <>B).
Is there something wrong with my syntax?
How should it be?

THnaks in advance :smile:

Answers

Sign In or Register to comment.