Re: File()
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Next message: Rick Bean: "Re: File()"
Date: Mon, 10 Jan 2005 10:04:31 -0800
>From the help 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.
So yes, I'd say it's normal behavior.
Dan
zzuffendoffer wrote:
> The File() returns .t. when the directory\filename is anywhere on the
> Path. I.E. file('c:\remote\test.txt') returns .t. when the file
> exists as J:\dbfs\remote\test.txt and 'J:\dbfs' is in the Path. Is
> this Normal behavior? It happens in VFP8 and VFP9Beta. I'd expect a
> .f. to be returned if I specify the path I want searched. Fopen()
> also will open the file in the same scenario above.
>
> Thanks for any help...
Next message: Rick Bean: "Re: File()"
Relevant Pages
- RE: SQL: Column is not found (error VFP 1806 - VB: -2147217900)
... Here is the error definition from the VFP 9.0 Help file: ... I noticed you are using the VFP ODBC driver. ... Keep an eye on the product lifecycle for Visual FoxPro here: ... >all the errors into a file, it waste my log file. ... (microsoft.public.fox.vfp.queries-sql) - Re: mnx tree strucutre
... Now who's reading the help file, Rick? ... Microsoft Visual FoxPro MVP ... While the Help file topic - Table File Structure ... >> Anyone know how to decipher the information in a mnx file into a tree? ... (microsoft.public.fox.programmer.exchange) - Re: Links in DV_FOXHELP.CHM no longer work
... Does the Help file work OK if you access it by double clicking on the CHM ... Keep an eye on the product lifecycle for Visual FoxPro here: ... links in the vfp help file no longer work. ... (microsoft.public.fox.programmer.exchange) - RE: Creating a View linked to a VFP table
... You could also use the Local View Wizard. ... look at the "View Designer" in the Help file. ... Keep an eye on the product lifecycle for Visual FoxPro here: ... (microsoft.public.fox.vfp.queries-sql) - Re: CONFIGURATION PROBLEMS
... >have to navigate all the wayto the folder c:\school. ... Richard: ... Look at the SET DEFAULT TO, SET PATH TO and CD commands in the help ... Microsoft Visual FoxPro MVP ... (microsoft.public.fox.vfp.forms) |
|