Results 1 to 3 of 3

Thread: drive list box - device unavailable

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    London
    Posts
    99
    Why, oh why, is the error handler not being invoked?

    Code:
    Private Sub drvList_Change()
    On Error GoTo DriveHandler
       DirList.Path = drvList.Drive
       Exit Sub
    
    DriveHandler:
        Select Case Err.Number
            Case 68 'device unavailable
                MsgBox "Drive unavailable etc etc"
        End Select
        Exit Sub
    End Sub
    VB6 Enterprise sp5, SQL Server2000

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    ??????????
    I should be...
    Check the Error Trapping setting. Click on Options in the Tools menu and choose the General tab and make sure "Break on all Errors" isn't checked.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    London
    Posts
    99
    Doh!

    Cheers
    VB6 Enterprise sp5, SQL Server2000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width