CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Block Remarks

  1. #1
    Join Date
    Jun 1999
    Posts
    78

    Block Remarks

    Hi
    In VB, Is there a way of blocking a few lines of statement as remarks/comments instead of line by line thru '. Just like In C language,
    /* ........................
    ............................
    ............................ */

    Thanx in advance.


  2. #2
    Join Date
    Jul 1999
    Posts
    20

    Re: Block Remarks

    I don't think u can do that,
    but u can use the "edit->comment block" to mark more than one line as commented.

    Cheers,
    Praba


  3. #3
    Join Date
    Sep 1999
    Location
    Trivandrum, Kerala, INDIA.
    Posts
    32

    Re: Block Remarks

    Or, Right-click on any tool bar, and include the "Edit" tool bar. Has toggle breakpoints, and other useful buttons including the Block comment/uncomment.


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

    Re: Block Remarks

    There is also that trick in C(++) to use the preprocessor to "comment" (= not execute) lines:


    #If 0 then
    this lines will not
    be executed
    #End If
    MsgBox "hello"





  5. #5
    Join Date
    Jun 1999
    Posts
    78

    Re: Block Remarks

    Sorry, I'm not very sure of your commands,
    could u please give me a more detailed example ?
    Thanx.


  6. #6
    Guest

    Re: Block Remarks

    Let me explain in detail what praba and deepak are trying to say. first, make sure the edit toolbar is visible. you can do this by selecting from the menu view->toolbars->edit.
    select the lines that you want to be commented. use the mouse to do this or simply hold down the shift key and select the multiple lines. now click on comment block button on the edit toolbar. To uncomment a block, follow the similar procedure and click on uncomment button on the edit toolbar.

    regards,
    Mani. S


  7. #7
    Join Date
    Jun 1999
    Posts
    78

    Re: Block Remarks

    Oh, Sorry, I first thought of praba is asking me to put in such syntaxs, I dunno they were talking the same things, thanx for ur explanation.


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