Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get field names that in an index key expression
Message
 
 
To
01/06/2005 15:20:02
Kay Alexander
Pennsylvania Farm Bureau
Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019098
Message ID:
01019102
Views:
19
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform