Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement