Board index » delphi » Catching drive not ready
drews...@superlink.net (Eric Drews)
![]() Delphi Developer |
Mon, 03 Aug 1998 03:00:00 GMT
Catching drive not ready
I am working on an application in which I use the drive combo,
directory list and file list boxes in coordination. For the most part, the application works real well. One small problem, if I select a drive (say B, a floppy drive) that has no disk in it, I get this lovely system message saying 'Drive not ready'. I got a solution to that message which seems to work okay as well. Rslt := SetErrorMode(SEM_FAILCRITICALERRORS); I placed this statement in the OnCreate event for the form in question. It would seem that I would be able to trap this exception (EInOutError) I WILL post a solution that seems to perform acceptably to me when I Thanks for your help on this one. -- |