Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File(): finds file while it doesn't exist
Message
De
05/12/2000 14:36:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00449220
Message ID:
00449576
Vues:
13
Hello,

I am taking your advice and turn to adir()!

Thank you for helping out,
Ivo Hubert


>Nothing is wrong. Just file() is not a reliable function. Use ?adir(..)>0 instead.
>Best Wishes.
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>Does the SMS.ini exist in another path? If file doesn't find it at the specified location, it will look down the given paths. I stopped using file() long time ago and used adir() instead. That only looks where you tell it.
>
>If that isn't it - then I'm as baffled as you :-)
>
>
>>Hello everyone,
>>
>>In an application I check if a file exists with the file()-funtion.
>>
>>I have used this function for many years, without a problem, all very straightforward.
>>
>>But now I have one application who gives on a workstation a result .T., while the file does not exist on it and has never existed there.
>>
>>It is an NT-workstation and the syntax is:
>>
>>if file("c:\station\sms.ini")
>>endif
>>
>>What is wrong?
>>
>>Best regards,
Ivo HUBERT
G.S.P. n.v., Development dep.
Antwerp
Belgium
ivo.hubert@skynet.be
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform