General information
Category:
Coding, syntax & commands
>I'm writing a utility that will loop through every DBF in a specific directory, open them, loop through the tags in each one, and spit out that info (DBF(), TAG(), and KEY()) into another DBF. My problem is, I also need to know if it's in ASCENDING or DESCENDING order.
>
>Is there a command (or something) that will return whether a specific Index Tag in in Descending or Ascending order?
>
>Thanks!
Just be forewarned that DESCENDING() tells you about the current order of the tag, not the definition order. If the table is set to the order in more than work area, it has to be either ascending or descending in all of them, which means you can't even count on this working in a USE AGAIN scenario, unless you make sure the table is closed before you start.
Personally, I create all indexes in ascending order and flip them when needed.
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only