Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Read-only file exclusive doesn't generate an err
Message
From
06/08/2007 16:32:04
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01246274
Message ID:
01246281
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I've tried the following three commands in the command window:
>
>USE H:\VFPAPPS\HelpDesk\Data\users.dbf ALIAS Users IN 0
>USE S:\VFPAPPS\HelpDesk\Data\users.dbf ALIAS Test IN 0 EXCLUSIVE
>ZAP IN test
>
>The last command gave me an error that file is read-only. How can I find the read-only status on the use command?

You can use ADIR() to determine if a file is read-only.

EXCLUSIVE is not the same as read-only - in fact there is a NOUPDATE clause to USE which I don't think is widely used.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform