DTV_Janus Posted July 8, 2004 Share Posted July 8, 2004 Is there a way to comment more than 1 line of code with the ' ? :huh: Im talking a VB equal of /* */ Steve Link to comment Share on other sites More sharing options...
0 Causas Posted July 8, 2004 Share Posted July 8, 2004 nope Link to comment Share on other sites More sharing options...
0 James Rose Posted July 8, 2004 Share Posted July 8, 2004 You can comment multiple lines using the Line Continuation charactor (a space and an underscore chacactor) 'This is an example _ of a multiline comment Link to comment Share on other sites More sharing options...
0 John Veteran Posted July 9, 2004 Veteran Share Posted July 9, 2004 LOL! That will work? :wacko: Link to comment Share on other sites More sharing options...
0 anthonycara Posted July 9, 2004 Share Posted July 9, 2004 i dunno, i've seen it used in code..... i dont think it works with comments tho :( i just go ''''''''''''''''''''' '''YADDA'''' ''''''''''''''''''''' or something Link to comment Share on other sites More sharing options...
0 dreamthief Posted July 9, 2004 Share Posted July 9, 2004 No, you can't use /* */ for Visual Basic. But you don't have to type the beginning ' for each line yourself. Just use the combination keys: to comment CTRL + K, CTRL + C to uncomment CTRL + K, CTRL + U Usually i just use CTRL + K to comment and uncomment it. If it is commented, it will auto uncomment and vice versa. Link to comment Share on other sites More sharing options...
0 bwx Posted July 9, 2004 Share Posted July 9, 2004 Right click on the toolbar at the top of the VB6 IDE (the one which contains all the save, open icons), then select Customize. Then, under the Toolbars tab, you'll see a checkbox "Edit". Check it, then OK out of the dialog. You'll notice two buttons on there; "Comment" and "Uncomment". Dock the toolbar anywhere you want and you're good to go. ;) Hope that helps, bwx EDIT: dreamthief beat me to it :p Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted July 9, 2004 Share Posted July 9, 2004 James is correct about multiline commenting with the line continuation character. Link to comment Share on other sites More sharing options...
0 DTV_Janus Posted July 9, 2004 Author Share Posted July 9, 2004 Thanks guys, its still not good ol' /* */ but that will work! Link to comment Share on other sites More sharing options...
0 James Rose Posted July 9, 2004 Share Posted July 9, 2004 James is correct about multiline commenting with the line continuation character. Thanks, I've been using VB for 13 years, I'd HOPE that in that time I've learned something... (but you never know :huh: ) Link to comment Share on other sites More sharing options...
Question
DTV_Janus
Is there a way to comment more than 1 line of code with the ' ? :huh:
Im talking a VB equal of /* */
Steve
Link to comment
Share on other sites
9 answers to this question
Recommended Posts