Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid a windows system message ?
Message
 
To
11/11/1997 12:17:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00059541
Message ID:
00059558
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform