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
Answers
1. A|B (If you are looking for Records A or
2. <>A AND <>B (If you are looking for Records other than A and
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
you can search forum, there has been so many post for Setfilter which may clear your doubt. one of them is forum.mibuso.com/discussion/46941/setfilter-blank-is-not-working-in-range-case