Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if Order() is Descending?
Message
From
05/09/1998 15:04:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/09/1998 09:05:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00133204
Message ID:
00133593
Views:
11
>>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 :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform