Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readonly on Table Open
Message
From
02/11/2005 15:39:10
 
 
To
02/11/2005 14:58:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01064050
Message ID:
01064717
Views:
24
>>>>>What would force a table to be opened with READONLY=.T.? I am performing the following command:
>>>>>
>>>>>USE (pcFileName) IN 0 AGAIN ALIAS mytable SHARED
>>>>>
>>>>>This is being executed in the Init method of a form with the variable 'pcFileName' being passed as a >>>>lparameter.
>>>
>>>>>Is it a real table? Is it open somewhere else? If yes, what is the mode? Do you have a read-write access to
>>>>>that file?
>>>
>>>The table is a form (scx), it is not open anywhere else and I have read-write access. I can open the form with >>the MODIFY FORM command; but if opened via my form Init method as above it is being opened readonly.
>
>>Even if an .SCX is marked read-only, you can still open it with MODIFY FORM, you just can't save the changes. It >will also say "Read-Only" in the form designer titlebar.
>
>Yes, this is expected behavior -- what else (besides the file attribute of READONLY) would cause a USEd table (or SCX) to be READONLY?

If the file is also part of the .EXE, it would appear as readonly, too.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform