Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving records issue...
Message
From
08/08/2007 13:23:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/08/2007 13:18:58
Dan Mccoy
Database Applications Development
Lancaster, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 3.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01246827
Message ID:
01246829
Views:
13
>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)
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform