Hi
I have a piece of code which I don't understand fully.
recSO.COPYFILTERS("Record 1");
SETRANGE("Order No","Order No");
FIND('+');
SETRANGE("Order No");
"Record 1".COPYFILTERS(recSO);
What does it do? I mean, what happens when you clear the filter after a FIND('+') ?
Answers
It will find the last record because it's clearly written Find('+').
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
1 the code saves the current filters from Rec to recSO,
2 then sets a temporary extra filter range on Rec for "Order No.",
3 the find('+'); finds and LOADS Rec with the last record
4 the temporary extra filter range is removed
5 the saved filters are restored
Now Rec is sales order line 5 of 5, and the filters are like they were.
At least this is how I read it...