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:40:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
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:
01246290
Views:
18
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?
>
>Thanks.

I would use error handling in any case, since other things may go wrong: apart from read-only, you may not have adequate permission; or there may not be enough disk space for some operations (for other cases, such as PACK, REINDEX, or adding records).
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform