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.
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!