Click to See Complete Forum and Search --> : Block Remarks
Shella
October 31st, 1999, 01:35 PM
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.
Praba S
October 31st, 1999, 06:58 PM
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
deepak_warrier
November 1st, 1999, 12:43 PM
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.
Lothar Haensler
November 2nd, 1999, 03:17 AM
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"
Shella
November 2nd, 1999, 05:10 AM
Sorry, I'm not very sure of your commands,
could u please give me a more detailed example ?
Thanx.
November 2nd, 1999, 05:33 AM
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
Shella
November 3rd, 1999, 04:36 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.