Stupid Programmer Tricks

VB programmers out there, here’s a quick quiz (stripped down to its essentials [which should make it pretty easy to spot]).

Why does the following code run properly on a U.S. system, and give a type mismatch error on an Italian one?

Dim dirty as String

dirty = false

dirty = dirty or (1 = 0)

Msgbox dirty

Ugh. Such. A. Dumb. Error… (hits head on desk).

Leave a Reply

Your email address will not be published. Required fields are marked *