>>There's a function TagNo() to tell the number of active tag. In case a routine/method/whatever has to change order, it's useful to keep track of the previous order, so we can restore it on exit. The trouble is that if I'm setting the same order Ascending or Descending, when I get back, I can't know the way it was before.
>>
>>Is there a function to return the current ascending/descending status of an index tag?
>Yup,
>DESCENDING([CDXFileName,] nIndexNumber [, nWorkArea | cTableAlias])
>Cetin
This reminds me of an old programmer who wenf from Cobol to mFoxPlus. After playing around for a couple of days, he tried to do some real work, and then stumbled over unlimited possible combinations of For/while/next/rest and other scoping options, and the huge number of functions. So what did he do? Wrote by intuition. He guessed what may he call a function he needed if he had to write it, typed the name of the function... and it worked, in most of the cases.
This was too easy... I'll have to get something more difficult next time :) (or could have looked in help myself - I'm either getting tired, lazy, or simply got into the general habit to write a question first, and then try :).