Originally posted by taxes
Hi Pirate,

REf. my first response to you.

"I find that your code works all the time. Why do you say "Halfway"?"

Any enlightenment? Bearing in mind my subsequent comments on the MSDN notes.
For example :

When a = 0 and b =1
If I check this case like this

VB Code:
  1. Select Case a AndAlso b
  2.  
  3.             Case a = 0, b = 0
  4. msgbox "first case"
  5.             Case a = 0, b = 1
  6. msgbox "second case"
  7.         End Select

This would returns msgbox "first case" . Because it evaluates a as true and forget about the rest .