Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create primary key index tag with filter?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to create primary key index tag with filter?
Miscellaneous
Thread ID:
00129102
Message ID:
00129102
Views:
45
I am writing a program that re-indexes the tables in a database. First, the program delete all the tags ("delete tag all"). Then it issues "index on xxx tag yyy [for zzz] [descending] [candidate]". This works fine unless the tag needs to be a primary key. The "index on..." command doesn't seem to have a way to specify that the tag is to be the primary key. The only solution I've found is to use the command "alter table aaa add primary key bbb...". The problem with this approach is that it doesn't allow one to specify "descending" or a filter expression.

How does one programmatically create a primary index tag that contains a filter or the "descending" clause?

Thanks,
Chris Lawrence
Next
Reply
Map
View

Click here to load this message in the networking platform