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

    Put big part of code in comments

    Do you know an other method to put text in comments in code in VB

    like Visual C /* code */

    I know '.... but with a large comments is't long

    Sorry for my english

    Thanks
    Redg


  2. #2
    Join Date
    Jan 2000
    Location
    CA
    Posts
    52

    Re: Put big part of code in comments

    I don't think that there is a block command similar to /* */, but...

    If you look under View|Toolbars, there is a 'Edit' toolbar that has an icon that will automatically put the comment ' apostrophe in front of every line in a block of selected code. I hope this helps...


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Put big part of code in comments

    you can also use the "PreCompiler" directives in vb 5 and above:
    #if 0 then
    msgbox "this will not be executed"
    ...
    #endif


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