Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File function returns .f. while file exists
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592307
Message ID:
00592339
Views:
17
I'm puzzled completely:
=messagebox(transf(file('O:\redp\work\tp\ma\TpMA200146_B.dbf'))) && Returns .t.
=messagebox(transf( file("o:\REDP\WORK\TP\MA\TpMA200046_B.dbf"))) && Returns .f.
Is it case sensitive? In my original check I don't use file letter abbreviation at all. It works fine on one server and doesn't work on another. What is the problem here? Is it safe to use file() function at all?



>Hi everybody,
>
>I have a file on the network drive O:\redp\work\tp\ma\TpMA200146_B.dbf
>In a program I'm testing for its existance and it returns .f. However, file does exist. I checked few times. What may cause file() function to not recognize this file? I can switch to adir(), but has anyone seen this problem before?
>
>I checked the same file in another session and it returns .t. So, I'm looking in the debugger. I did upper(lcCheckFile)=upper('\redp\work\tp\ma\TpMA200146_B.dbf') and it returns .f. I checked len(lcCheckFile) and it's 33. I look at it and I don't see a mispell. I'm going to check symbol by symbol now.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform