Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp 9 memo file missing or invalid on set resource to
Message
De
02/04/2009 22:17:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Vfp 9 memo file missing or invalid on set resource to
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01392903
Message ID:
01392903
Vues:
364
I have run into issues with a VFP 9 app that we have that has been upgrade from VFP 6 to VFP 9 SP1 with getting periodic "memo file is missing or invalid" error message #41 on lines of code that have "set resource to ("C:\Documents and Settings\UserName\Local Settings\Application Data\Company\Product\myprefscustomfilename.dbf"). I understand from reading that VFP 9 changed things in that it uses the resource file (otherwise known as foxuser.dbf but I use a custom name for it in the app) SHARED instead of EXCLUSIVE as it did in versions before VFP9. Whenever I want to change the data in the file in the app (since I store some data in the prefs for the custom program)
so I always use this code to update the data

set resource off
use ("C:\Documents and Settings\UserName\Local Settings\Application Data\Company\Product\myprefscustomfilename.dbf") in 0 shared alias myprefs
set resource to ("C:\Documents and Settings\UserName\Local Settings\Application Data\Company\Product\myprefscustomfilename.dbf")

any ideas on why I'm getting this and ideas on how to avoid this issue? As far as I know I've looked and the file is NOT open in any workarea when it says the error
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform