Code Logic help

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('+') ?
"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."

Answers

  • slmaluwaslmaluwa Member Posts: 366
    ok. Did some R&D and found this, if you exclude the copy filter lines at the top and bottom, it moves the last line of that particular order. :D
    "A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."
  • RockWithNAVRockWithNAV Member Posts: 1,139
    Hey Friend,

    It will find the last record because it's clearly written Find('+'). :)
  • Peter+is1Peter+is1 Member Posts: 174
    Suppose we start with Rec. where Rec is sales order line 3 of 5 for the Sales Order.

    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... B)
    \\
    The truth exists in seven versions.
Sign In or Register to comment.