Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for a file on a drive
Message
De
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:
00535075
Vues:
12
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform