Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get field names that in an index key expression
Message
 
 
À
01/06/2005 15:20:02
Kay Alexander
Pennsylvania Farm Bureau
Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01019098
Message ID:
01019102
Vues:
20
No, there's nothing built-in for that. You can loop through table fields using AFIELDS(), FIELDS(), FCOUNT(), e.t.c. and see if each field is presented in the index key expression returned by KEY().

>I created a .CDX file. The key expression contains multi fields as "cField1+STR(nField2)+...". Now, I am trying to recall those fields in the index one by one to create a cursor programmatically. I realize that I can get a string of the key expression with SYS(14) or KEY() function, but I need to extract a field name logically. Is there a function that I can use to accomplish this task without programming whole bunch of codes?
>Thank you in advance.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform