Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Really SIMPLE question I can't answer on my own

by the3factory 3/25/2008 8:05:00 AM
Question:
I started out coding in C++, in C++, to comment a line with the coding language I grew up on, one would use the command:

//comment

in vb, such would be

'comment

in c++ h'm friendly on an abbreviation that can have two purposes, it can comment out a small section of a line of code in the middle:

code /*comment*/ code

or I could block out a whole lot of lines

code
/*comment
comment
comment*/
code

is there a similar way to comment out lines in vb, without going through each and every line, or selecting every line and using the button, or even just commenting out a section of code in the middle?



I seek not code, but knowledge. I seek not what works, but why what i have doesn't. I seek reasons!
Answer1:
Unfortunately, there is no way to do what you're looking for.  The only way is to manually comment each line, or select a block of code and either press Ctrl+K, Ctrl+C, or click Edit - Advanced - Comment Text. 

 




Aaron Alton
Answer2:

Use the Comment, Uncomment buttons on the Standard toolbar. 

Answer3:
do you know if visual c++ or C# has the ability to do this?



I seek not code, but knowledge. I seek not what works, but why what i have doesn't. I seek reasons!
Answer4:

You are describing features of the C languages C, C++ and C#.  The visual flavors conform.

Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0