Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for a file on a drive
Message
 
À
25/07/2001 11:32:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00534547
Message ID:
00537998
Vues:
9
good to know, thanks
>>>I am employing the statment "if file('d:\hisname.mem')" in an app. Most users have a D:drive and a few do not. My statement causes an error. Do I need to employ an error handler is this case?
>
>>problem seems to have gone away as fast as it came. ?????
>
>If the problem comes back try using the drivetype() command:
>
>if drivetype('d') # 1 and file('d:\hisname.mem')
>
>or
>
>if drivetype('d') = 3 and file('d:\hisname.mem') &&if you want it to be just a hard drive
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform