Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid a windows system message ?
Message
From
11/11/1997 15:40:23
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00059541
Message ID:
00059585
Views:
30
>>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

Hi George, ev'rything is working fine! It really helped a lot! Thank you very much.

Vlad.
Previous
Reply
Map
View

Click here to load this message in the networking platform