Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I don't like typing

 

Option Explicit On

Option Strict On

 

on every code page. These should be on by default. I can't find a setting to have them automatically turned on in the Options dialog... where is it?

Posted
Right, that's what I'm trying to do... where do I set that? You got to remember, I'm use to C# where you have Option Strict/Option Explict by defaut, and why VB would even allow you to do undeclared variables just seems to be a recipe for disaster...... maybe even Option Compare... not sure how that one relates to C#.
  • Leaders
Posted

Tools -> Options.

Click on the Projects folder and go to VB Defaults. Turn everything on. :)

why VB would even allow you to do undeclared variables just seems to be a recipe for disaster

So that its harder (for anyone) to debug of course. :p I wish that everybody would turn theirs on because it's depressing receiving someone's "working" code that violates several Option Strict ordinances and doesn't compile.

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...