Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CDX file gets lost when I SORT?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565540
Message ID:
00565550
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
You could sort to a temp table, then use the HelpFileDBF exclusively, zap it, then append from the temp table. My assumption is that you are creating a local help file [HelpFileDBF] for the user since you would have to have exclusive use to HelpFileDBF in order to overwrite it with the SORT command.

>Here's my code where I do a SORT of a table. My CDX files gets lost. I suspect it's my sort that clobbers my INDEX. How can I prevent this? Thanks.
>
>*************************
>* Sort Master Help file *
>*************************
>
>SET SAFETY OFF
>USE (helpfiledbf2) IN 0 SHARED
>SORT TO (helpfiledbf) ON contextid
>SELECT masthelp
>USE
>SET SAFETY ON
>
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform