Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Index Tag in Descending Order?
Message
 
À
28/06/2001 11:23:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00524342
Message ID:
00524774
Vues:
14
>>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.
>

I disagree... when passed the index number of the index in question, the value of DESCENDING() indicates whether an index tag was created with the DESCENDING keyword.

DESCENDING() -> current order of active index

DESCENDING(1) -> create order of 1st index in the cdx
Brien R. Givens

Brampwood Systems
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform