CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2000
    Posts
    40

    How can I comment a block of vb code?

    It seems I can only comment the code line by line by using " ' ". Does anybody know how can I comment a block of vb code?
    thanks


  2. #2
    Join Date
    Jan 2001
    Posts
    165

    Re: How can I comment a block of vb code?

    As far as I know you can only comment vb code with either a "'" or "REM". Either way you have to actually put that in front of EVERY line that you want commented. There is no nice way like /* */ or anything. A fast way of doing this is to highlight the block of code that you want commented then go to View on the toolbar and select Edit under Toolbars and there is an item on that toolbar for commenting a block of code.

    -K


  3. #3
    Join Date
    Sep 2000
    Posts
    40

    Re: How can I comment a block of vb code?

    I found it. It makes me feel much better.
    Cool, thanks.



  4. #4
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: How can I comment a block of vb code?

    View->Toolbars->Customize

    Choose Toolbars tab
    Shortcut Menus->Code Window->Code Window

    Command tab
    Edit->Drag and drop Comment, Uncomment

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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