Post Visual Basic Tips

dannaswolcott

New Member
Post any visual basic tips or tricks. I am takeing a visual basic class in school and i am looken for any tips on how to be a better programer.
 
Not specific to VB, but...

1) Write clean code, and by this I mean format your code so it is easy to read.
2) Name all your variables something intuitive to what they do.
3) Comment, comment, comment.

Specific to VB...

1) Use Option Explicit to require explicit variable declaration.

I'm sure there's more, but this is all that sticks out at the moment.
 
Don't forget to indent correctly and count your Ifs and End Ifs.. 'Comment every sub and everything you do.
 
Back
Top