Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid a windows system message ?
Message
 
À
11/11/1997 12:17:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00059541
Message ID:
00059558
Vues:
36
>I'm using Foxpro 2.6 and I would like to know how to avoid a system message when using diskspace() and the default drive is the cd_rom drive.
>Thank you. Vlad.

Vlad,

If you mean that ugly white dialog, use this:

m.seterrmode = RegFN("SetErrorMode", "I", "I")
m.errmode = CallFN(m.seterrmode, 1)

Note, the FoxPro should then generate an "I/O Operation failure" error when you attempt to set the default.

To restore the previous error mode, call again passing m.errmode.

hth,

George
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