Options

Change the sense of sorting of a key

flyingjujuflyingjuju Member Posts: 35
edited 2013-02-13 in Navision Financials
Hello,

I have a key with a date of command(order) and a code seller. When I use this key in my code, the result is in the increasing order.
How may I change this order and have by decreasing?

Thank you

Answers

  • Options
    ppavukppavuk Member Posts: 334
    check ASCENDING statement for record variable.

    rec.ASCENDING(true) will sort A to Z, rec.ASCENDING(false) will sort Z to A. The findset does not work with ASCENDING, so use find('-')
  • Options
    flyingjujuflyingjuju Member Posts: 35
    thank you.

    I did not know this option
  • Options
    ppavukppavuk Member Posts: 334
    don't forget to mark this as solved :)
Sign In or Register to comment.