Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving records issue...
Message
De
08/08/2007 13:23:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/08/2007 13:18:58
Dan Mccoy
Database Applications Development
Lancaster, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 3.x
Database:
Visual FoxPro
Divers
Thread ID:
01246827
Message ID:
01246829
Vues:
15
>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)
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform