Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for a file on a drive
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00534547
Message ID:
00534631
Vues:
13
>>>>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?
>>>
>>>Why not put the file in the application directory and leave the pathing issue out? Otherwise use a relative path. IAC ?FILE("x:\temp.txt") doesn't cause an error for me (I don't have a drive X:).
>>
>>problem seems to have gone away as fast as it came. ?????
>
>Timothy,
>
>David Frankenbach once said, "Bugs that go away by themselves have a habit of coming back by themselves." Brenda may be onto something in her post.

True, I've had 'intermittant' errors creep up in the past.
"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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform