>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