hI i've got a little problem with the setfilter function:
e.g.
I write the following down and run it:
REPEAT
SETFILTER(Ausprägung,'<>%1',constraint_Rec_Help.Ausprägung);
UNTIL constraint_Rec_Help.NEXT = 0;
Then my problem is, that the last setfilter function overwrites the other results. But I want that all filters which are set in repeat-until-loop will be set.
How can I solve that????
Thank You very much for help.
Comments
Thank you for the fast response.. :P
Whenever I try to do that setfilter, i get an overflow error. Since the size of the field is 2 characters, is it possible to set a filter larger than 2 characters?[/code]
and codeunit:
I did not get the error at all. May be you can redefine your problem, or give us more details about it?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I tried to run more than one setfilter functions on the same field. But only the last setfilter command was recognized, while the other ones seemed to be unrecognized. I had to put the setfilter in a repeat-until-loop...
I solved the problem by first using the mark function and then I filtered only the marked records.
This works well.