Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21107

[RESOLVED] Who writes a Case statement like this?

$
0
0
Is it just me, or if you saw code like this you'd be shaking your head saying, "What the...?"

Code:

        Select Case (rsProductsRiders!Status)
            Case Null
                strFundingType = "S"
            Case "Y"
                strFundingType = "S"
            Case "F"
                strFundingType = "S"
            Case "W"
                strFundingType = "W"
            Case "N"
                strFundingType = "N"
            Case "M"
                strFundingType = "S"
            Case "C"
                strFundingType = "N"
            Case Else
                strFundingType = "S"
        End Select


Viewing all articles
Browse latest Browse all 21107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>