Useful little function in case anyone was wondering on how to determine if a number is even or odd. I must be bored...VB Code:
Private Function IsEven(lNum As Long) As Boolean IsEven = Not CBool(lNum& And 1) End Function
|
Results 1 to 2 of 2
Thread: Even/odd function here
|
Click Here to Expand Forum to Full Width |