Floppy File Errors
I am writing a VB database application that uses the Get Statement to
randomly read a data file. I have defined a structure that is used to
fetch the data from each record. I have proceeded quite far in this
application and am now adding the "finishing touches," including
comprehensive error handling.
In the routine that reads records I have placed an On Error GoTo Statement
immediately before the Get Statement. If I use a floppy disk file, and
attempt to generate an error by opening the drive latch, VB does *not*
trigger an error. After executing the On Error Statement, the Get
Statement "accesses" the drive and the structure is filled with garbage.
Shouldn't the Get Statement trigger an error if the drive isn't ready? Has
anyone out there experienced this phenomenon and is there a work around?