Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File function returns .f. while file exists
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00592307
Message ID:
00592352
Vues:
17
This message has been marked as the solution to the initial question of the thread.
See highlited character at the bottom of the message.

>>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.
>
>Before I'll go absolutely crasy:
>
>Do you see the difference:
>=messagebox(transf(upper("O:\REDP\WORK\TP\MA\TpMA200<b>0</b>46_B.dbf") ;
>                  =upper('O:\redp\work\tp\ma\TpMA200<b>1</b>46_B.dbf'))) && Returns .f.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform