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).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s