Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP : Determine whether a floppy disk is inserted or not
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00322646
Message ID:
00322958
Vues:
24
>>>>Hi,
>>>>
>>>>Can VFP check whether a floppy disk is inside the drive or not?
>>>>It can be done in Foxpro 2.x using ISDISKIN.BIN
>>>>
>>>>Rgds
>>>
>>>Hi Ralf,
>>>
>>>In addition to Ed's reply, DISKSPACE("A:") will return -1 if no disk is inserted (or some other error occurs).
>>
>>Hi George,
>>
>>Is that on a Win95/98 machine? I tried it on a WinNT machine and got an NT system error that ON ERROR would not trap. Or is this what happend on Win95/98 too?
>>
>>Bill
>
>Win98 SE. I don't have an NT box to test it with. The docs don't say that there may be a problem with NT. Just that -1 is returned. It may be an issue with the ersion/SP of NT that you're running.
>
>Maybe Ed R. knows something about this.

My gut feeling is that NT being the picky sort raises a system error, but as you say, maybe Ed or some other system type will know the difinitive answer.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform