This is how I used it anyway . I set the variables a and b from different locations and I made sure have been set to different values every time .
VB Code:
Private a As Integer Private b As Integer Private Sub ValidateMe() Select Case a AndAlso b Case a = 0 And b = 0 MsgBox("index0 index0") Case a = 0 And b = 1 MsgBox("index0 index1") Case a = 0 And b = 2 MsgBox("index0 index2") Case a = 1 And b = 0 MsgBox("index1 index0") End Select End Sub





Reply With Quote