>I have created an application thet in the course of normal user input a new record is saved to a VFP table. I have tested and re-tested entering records via this app from within the VFP IDE and it all works fine. However when I compiled to an executable and then tested it I get the following error message when I attempt to save a record: "Cannot update the cursor pfinv_head since it is read-only." The confusing thing is that the "cursor" (pfinv_head) is not a cursor but a table. An actual database file and part of a dbc. I am unsure as to why I can't save to it when my app is compiled to an executable, but can when running it from the VFP ide. Anybody out there have any suggestions???
>
>Thanks,
>Dan
You might check if one of the following causes the problem:
The table is marked as read-only.
You don't have access rights. Test this point and the previous one by doing manual changes from the IDE, or (less accurate) by simply copying the file and deleting the duplicate, in Windows Explorer.
The table is marked as "included" in the project. This will put a copy of the table into the EXE, and Visual FoxPro will access this copy instead of a separate file on disk.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)