Coffeehouse Post

Single Post Permalink

View Thread: Select Case behavior
  • User profile image
    ScanIAm

    @spivonious: add to that, the propensity for the previous developers to do this:

     

       Select Case True
        Case X = 1
        Case X = 2
        Case Else
             'Do Something HereEnd Select

    instead of

    If X <> 1 AndAlso X <> 2 Then
        'do something here
    End If

    I frikkin hate 'clever' code.