Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From The Pages of FPA
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00351646
Message ID:
00351999
Vues:
20
>>George,
>>
>>Not to rain on the parade here, but, out of curiosity, I tried this code on my Windows2000 Professional box. If I DISKSPACE(tcDrive) and tcDrive does not exist, I get a return value of -1.
>>
>>No errors, no mess. So what am I doing right (or wrong)?
>>
>
>It may be that CreateProcess() is by default passing through critical errors to VFP to process; under NT, it fires up an A/R/I messagebox at the OS level in respoonse to no media in the drive.
>

Ed, John, JVP, Christof:

Let's for a moment suppose that NT didn't have this problem. The question would then be, "Is the function reliable?" Unfortunately, the answer is no, even under Win9x. Why? Because another condition could exist that would cause it to return 0. Namely, that the disk is full. In this instance the disk would actually exist, but the function would say that it doesn't. This condition has exactly nothing, zip, nada to do with having an understanding of the API, or the platform under which an application is being run. This, to me is a far bigger oversight.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform