Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't index from within a compiled .EXE
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00279035
Message ID:
00279159
Views:
14
>I have a large application that runs fine when compiled into an .EXE. I can update tables with new/edited info. However, when I run a simple program to re-create my indexes I get the error message:
>"Cannot update the cursor" on each index command. The code looks like this:
>
>use \prg\data\mytable.dbf exclusive
>delete tag all
>index on lname tag lname
>index on cname tag cname
>
>I get the same message for each line of index code. I have tried including and excluding the DBC in the project. I have removed the "DELETE TAG ALL" line. The cursor buffering is set to 1. I checked it after the table was opened.
>I also made sure the tables are marked as excluded under the database.
>
>This operation works fine when run from the VFP 6.0 command prompt. It only give problems when compiled into the .EXE.
>
>As usual, many thanks in advance to all.
>
>John J. Henn

Is the database opened exclusively? Usually, in an application, the database would be open shared. But for indexing, I believe you'll need to close it and open it exclusive. This does mean that only the person doing the indexing can be in the application.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform