Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with a table named about.scx
Message
From
26/07/2001 11:23:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00535764
Message ID:
00535768
Views:
15
>Hi everyone,
>
>I'm working on a small app to help users replace the classes used in forms. The app works great except if the file is named about.scx, it opens the file but it's read-only. This only happens when I compile to a .app file and run it, I don't get the error when I open the from run it from the IDE
>
>A button allows the user to pick a .scx to edit and stores it in a property on the form called FormToEdit. I open the .scx using the following line of code:
>
USE (THISFORM.FormToEdit) IN 0 EXCLUSIVE ALIAS "tForm"
>If the file can't be opened exclusively, the error handler traps error #3 and notifies the user. When the file is named about.scx it appears to open fine with no error.
>
>Another method replaces the class and classloc fields with the following code:
>
REPLACE CLASS WITH LOWER(ALLTRIM(THISFORM.NewClass)) IN tForm
>REPLACE classloc WITH LOWER(ALLTRIM(THISFORM.NewClassLoc)) IN tForm
>When the file is named about.scx both lines of code cause error "#111 - Cannot update the cursor"
>
>If I rename about.scx to about1.scx it's works fine.
>
>Does anybody why this would happen. I'm stumped.

Check whether your form happens to be R/O. This can happen, for instance, if you use Visual SourceSafe or similar products.
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