Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FILE() sees file contained in app while watch window doe
Message
From
18/11/2004 14:19:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/11/2004 12:10:57
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
00962707
Message ID:
00962764
Views:
5
>An app uses FILE(lcFile) to determine if a particular routine is contained in the app/exe or must be searched for elsewhere.
>
>While tracing, IF FILE(lcFile) succeeds, but FILE(lcFile) shows false in the watch window.
>
>In some sense this is logical, because the app environment is slightly different from that of the developer, but it had us very confused.
>
>Is this a bug of how the watch window works?
>
>TIA,
>
>Alex

I am not sure whether it should be considered a bug, but I have seen some suggestions, to use adir() instead of file(), to check whether the file is really in a specific directory. I think file() will simply return whether the file was found, whether it is in the current directory, along the search path, or within the executable. Or something like that.
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
Reply
Map
View

Click here to load this message in the networking platform