Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding existing index type
Message
From
05/07/1999 10:54:02
 
 
To
05/07/1999 04:04:44
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00237416
Message ID:
00237489
Views:
12
>The question is: how can I tell what the index type is? If I can tell that the index in the table in question has already been changed to a regular index, I obviously will not apply the "fix" a second time. I have not been able to find a command that can tell me that ... anybody know if there is one? If not, any suggestions as to how I can tell the index type so that I don't have to re-index unncessarily?
>

You can use the CANDIDATE() function to check if the index in question is a candidate key (a primary key is just a special instance of a candidate key) or a regular key. You'll need to retrieve the Tag Number for the index in question, sinc the argument passed to the CANDIDATE function is a tag number not a tag name. You can use TAGNO() to retrieve the tag number for a given tag name.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform