Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
It's used() but it's also readonly!
Message
De
03/03/2003 17:45:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00760585
Message ID:
00760597
Vues:
12
>I had a user the other day who had a number of problems, not least because a poorly named file (books.sys) had been made readonly. This vital little file holds the next id for our table so is constantly being updated.
>
>It opened ok, could be read but now that it was readonly the updates couldn't happen and further problems resulted.
>
>Is there a way I can test if the table is opened and not readonly?

You may use an API approach to detect if a file has a read only status on it. But, IMHO, this is an approach would should be handled by a VFP table, holding the current keys of all tables, where it would always be available within your application.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform