Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot update cursor
Message
From
18/05/2004 09:50:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/05/2004 22:44:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00904773
Message ID:
00904903
Views:
13
>hi hilmar!
>it is read only. is there a way to change it(porgrammitically)? i tried to changed its property(table property), but when i open it, file is in used...

Did I understand correctly, that the table on disk is R/O?

If this is the case, I believe that the suggestions you got for making the cursor used in the form read-write won't work. However, I haven't tested this.

First of all, you may want to investigate WHY the table became R/O. Two major causes for making files R/O are:

(1) Source control software (for example, Visual Source Safe); one solution is to set the appropriate options in the source control software, so as NOT to make local files R/O. Tables, however, should usually NOT be placed under source control.

(2) Copying files from a CD to a hard disk makes them R/O.

As to making the files read-write, I would just do this manually most of the time. The reason is that once a file is read-write, it usually stays that way. In the rare cases where you really need to change the file programmatically, I personally use the DOS command ATTRIB. It is also possible to solve this with the WSH or with the Windows API.

Greetings,

Hilmar.
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
Reply
Map
View

Click here to load this message in the networking platform