Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
It's used() but it's also readonly!
Message
From
03/03/2003 17:45:37
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00760585
Message ID:
00760597
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform