Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of macro substitution(&) and FILE() at runtime
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00321491
Message ID:
00321913
Views:
20
>Fred,
>
>I've run into problems when I've had the path in the arguments of FILE()
>
>Cheers,
>
>Andrew
>
>>>The second problem sounds like either a pathing issue, or that you've compiled the file into the app/exe and it's not physically on the disk.
>>
>>
>>Andrew, FILE() always returns .t. for files built into the .APP/.EXE file. At least in my experience, that's true.

FILE() returns .t. if you only specify a filename, no path, if it's imbedded in the .EXE for sure. If you specify a path, it looks at that path for the file. Maybe it has trouble with long filenames, or paths with imbedded spaces, but I've never seen that.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform