Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fully specified file 'found' along the path
Message
From
18/09/2009 11:52:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01425098
Message ID:
01425150
Views:
55
>>>That's the way VFP FILE() function works. I guess they share the same code. It has been in FoxPro forever so it's a feature.
>>>
>>>>This is 'funny' :
>>>>
>>>>If I type MODIFY COMMAND F:\EFFE in the command window, it will open EFFE.PRG if it exists in F:\. However, if it doesn't exist there, but if there is an EFFE.PRG along the PATH, it will open that one. It shouldn't. It's a bug or at least an unwanted feature.
>>
>>I disagree. File() doesn't work like that. It returns .F. on my system if it is not available on given path.
>>
>
>Sure it does. You didn't test correctly.

How should I test? There is a prg named Tree2Grid.Prg in current folder:

? file('tree2grid.prg') returns .T.
? file('f:\tree2grid.prg') returns .F.

Where is my error in testing?

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform