Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File() command returns false info
Message
From
22/11/2006 15:44:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/11/2006 15:31:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01171614
Message ID:
01171923
Views:
7
>Viv
>from actual text from help file its obvious that it'll only look for in current path if we dont specify full path. see help contents below
>
>"You can include a path with the file name to search for a file in a directory or on a drive other than the current directory or drive.
>
>If you do not include a path with the file name, Visual FoxPro searches in the default directory for the file. If it cannot find the file in the default directory, Visual FoxPro searches along the Visual FoxPro path, which is established with SET PATH. "

I agree that the observed behavior is queer, or at least, inconsistent with the manual.

It seems you should just use the workaround of using adir(), if you want to make sure that VFP does not look anywhere except the desired directory.
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