Results 1 to 5 of 5

Thread: [RESOLVED] SELECT CASE on Exceptions

Threaded View

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    [RESOLVED] SELECT CASE on Exceptions

    I have an exception object.

    I want to do a select case to perform certain activities in cases when the exception is of a specific type.

    So how would I structure such a SELECT CASE block?

    For instance:
    VB Code:
    1. Select Case ex
    2. Case System.StackOverflowException
    3.  
    4. Case System.ObjectDisposedException
    5.  
    6. End Select
    Obviously, the above doesn't work but you get the idea...
    Last edited by simonm; Jan 19th, 2007 at 04:47 AM.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

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