General information
Category:
Windows API functions
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only