Sunday, April 13, 2008

VB6

OMG the hate I have for VB6. No multi-line comments, and now I've discovered its (so far) most ridiculous quirk.


Dim var1, var2, var3 As Integer


The above statement will declare var3 as an integer; no problem there. But guess what variable type will var1 and var2 be!?! That's right, the variable type VARIANT! Intuitive isn't it?

No comments: