Traps!

TRAPS!

1. Object References

Do you know what your variables are really referring to?

2. ByVal and ByRef

Using ByVal and ByRef properly is a critical part of managing your variables.

3. Strings Are A Reference Type

It doesn’t always seem so, but the String type really is a reference type.

4. Option Strict

Setting Option Strict to On in your projects can save a lot of time and trouble in tracking down strange errors.

4. DoEvents

Not really a trap, but a method that is subject to a lot of misunderstanding, and which requires caution in its use.

  1. Leave a comment

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