Results 1 to 4 of 4

Thread: [2005] simple - option strict

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    [2005] simple - option strict

    hey. i'm a boring old c# developer, and I'm planning to convert a bunch of code from vb .net to c#. I was told to enable option explicit and option strict beforehand. i haven't really touched vb since 6.0. Is there an easy way that I can do this project-wide?

    thanks,
    me

  2. #2
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: [2005] simple - option strict

    Project > [Project Name] Options > Compile > Compile Options -> Option Strict

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    Toronto, ON
    Posts
    1,093

    Re: [2005] simple - option strict

    In Visual Studio:

    Tools -> Options.

    Projects and Solutions -> VB Defaults

    It says there "Default Project Settings". Set Option Explicit and Option Strict to true.

    Then whenever you start a VB.NET program, they'll be turned on.

    If you want to change it on a project by project basis, right-click the project and select properties. It will bring up a page called 'My Project". This has a tab called "Compile" that allows you to set these on a project level basis.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    Re: [2005] simple - option strict

    thanks... i see that for one of the projects. the other one is a "website", and doesn't seem to have this anywhere. ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width