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.
Printable View
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.
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
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.
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"
Sorry, I'm not very sure of your commands,
could u please give me a more detailed example ?
Thanx.
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
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.