CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    Québec (Canada)
    Posts
    210

    Verify in code if all the variable was declare is't possible

    Is't a function in VB6 exist to verify if all the variable util in code was declare...

    Because when I try to make exe a received many error because some variable was not declare.

    And it was long to verify this line after line.

    Some body can help me?

    Sorry for my bad english

    Thanks
    redg


  2. #2
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    Re: Verify in code if all the variable was declare is't possible

    In general declarations have you written

    option explicit

    This should make sure that variables are delared or, if not, VB will call an error.

    Phil


  3. #3
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Verify in code if all the variable was declare is't possible

    Go to the Tools Menu and Select Options. Then in the Editor tab of the dialog box that appears, check the box Require Variable Declaration.

    This works the same as option explicit, except that you won't have to remember to write option explicit on every form and module.


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

Featured