There is no use in developing a function that does more than its supposed to do. I KNOW I only get a value 1 -> 12. So it doesn't really matter :)
There is no use in developing a function that does more than its supposed to do. I KNOW I only get a value 1 -> 12. So it doesn't really matter :)
Visual Basic is BASIC. So is the IQ of the developers that use it most of the time.
All these monstrosities from the Microsoft.VisualBasic namespace...
And this code:
Private Shared Function IsQuarter(ByVal month As Integer) As BooleanSelect Case month Case 1 Return False Case 2 Return False Case 3 Return True Case 4 Return False Case 5 Return False Case 6 Return True Case 7 Return False Case 8 Return False Case 9 Return True Case 10 Return False Case 11 Return False Case 12 Return True End Select End Function</pre>
How long can you make it?...
What's wrong with this: short, plain and simple
Function Mod3(ByVal number As Integer) As Boolean Return (number Mod 3 = 0) End FunctionGood thing I quit