Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO (FileName) does not work!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01054057
Message ID:
01054079
Views:
17
Hi Al,

Do you have file included into the project? Could it be that file is marked read-only?

I usually prefer evaluate('MyFunction()') instead of the syntax you're using, though it should not make a difference.

>Hi Naomi,
>
>That was the typo, but in my real project there is no typo. The file does really exit, but I still get these errors.
>
>Ali
>
>
>>>Hi every body,
>>>
>>>I run this in my project:
>>>
>>>m.myFileName = “C:\MyFolder\Filename.PRG”
>>>If FILE(m.myFileName)
>>>      DO      (m.FileName)
>>>EndIf
>>>
>>
>>
>>Is it a typo here: m.FileName, should it be m.myFileName? Also FILE function is not reliable, try adir(laFile,m.myFileName)=1
>>
>>
>>>But I get this error:
>>>File “Filename.PRG” does not exist.
>>>
>>>I Thought adding the following line before "DO command" would solve the problem:
>>>
>>>Compile      (m.FileName)
>>>
>>>But I get this additional error for the compile command too:
>>>Feature is not available
>>>
>>>Does any body have any idea on this?
>>>
>>>Thank you,
>>>Ali
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform