IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
VB.Net
Search VB.Net Group:

Advanced
-Collapse +Expand VB.Net To/From
To/FromCODEGuides
-Collapse +Expand VB.Net Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingVB.NetTool Basics   Print This    All Groups  
 
VB.Net Tool Basics:
VB.Net Comments (' or REM)
 
Posted 13 years ago on 11/14/2008 and updated 1/4/2009
VB.Net Code Snippet:
 A flashcard from our VB.Net Flashcards Library
 A code snippet from our VB.Net Code Snippets Page
 Tags: VB.Net , Comments

KB101508

Languages Focus: Comments

Commenting code generally has three purposes: to document your code, for psuedo coding prior to coding, and to embed compiler directives. Most languages support both a single line comment and a multiple line comment. Some languages also use comments to give instructions to the compiler or interpreter.

VB.Net Comments

Commenting Code
VB.Net, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). VB.Net does NOT have a multiple line comment.

Syntax Example:
'Single line comment.

REM Old school single line comment.

 


Multi-Line Comment Code Trick

You can simulate a multi-line comment with code which is useful especially if you wish to comment out a block of code.

For example:

If False Then
 '...code here skipped.
End If

More Info


Comments

1 Comments.
Share a thought or comment...
First Comment
Comment 1 of 40

The "Multi-Line Comment Code Trick", as it stands is only good to "comment out" valid syntactically correct code.

However this slight variation will comment out almost any text:

#If False Then

  Almost anything can go in here!

#End If

I have used this to include non-VB code used to manually generate code:

 

#If DotLisp Then

  (some-routine)

#End If

 

#If SecretGeekSimple2 Then

1,Test,Test2

2,Another,Test

$1:$2($3)

#End If

---
Mark Hurd
Posted 10 years ago

Comment 2 of 40

This code is for machine key generator. The code showing in this blog is for that the validation key and the description key also. As per assignment writing help in australia reviews it is not only source for machine key generator and for the validation and description also.

Posted 19 months ago

Comment 3 of 40
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing. G Suite Review
Posted 18 months ago

Comment 4 of 40
It is the intent to provide valuable information and best practices, including an understanding of the regulatory process. Jokes for Kids
Posted 18 months ago

Comment 5 of 40
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming. Funny Pick-up Lines
Posted 18 months ago

Comment 6 of 40
Thank you very much for sharing such a useful article. Will definitely saved and revisit your site Conversation Starters
Posted 18 months ago

Comment 7 of 40
Thanks for the nice blog. It was very useful for me. I‘m happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. Never Have I Ever Questions
Posted 18 months ago

Comment 8 of 40
Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. Traffic Secrets
Posted 18 months ago

Comment 9 of 40
Great survey. I‘m sure you‘re getting a great response. Traffic Secrets Review
Posted 18 months ago

Comment 10 of 40
Super site! I am Loving it!! Will return once more, Im taking your food likewise, Thanks. Clickfunnels Review
Posted 18 months ago

Comment 11 of 40
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work Resurge
Posted 18 months ago

Comment 12 of 40
I‘m happy to see the considerable subtle element here!. Leptitox
Posted 18 months ago

Comment 13 of 40
I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You. The Underdog Advantage
Posted 18 months ago

Comment 14 of 40
It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. Commission Hero
Posted 18 months ago

Comment 15 of 40
Good to become visiting your weblog again, it has been months for me. Nicely this article that i‘ve been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share. The Knowledge Broker Blueprint
Posted 18 months ago

Comment 16 of 40
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing. The Knowledge Broker Blueprint
Posted 18 months ago

Comment 17 of 40
I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job The Knowledge Broker Blueprint
Posted 18 months ago

Comment 18 of 40

Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next..  The Lost Book Of Remedies

Posted 18 months ago

Comment 19 of 40

Aw, it was quite a good post. In idea I have to put in writing such as this moreover - taking time and actual effort to produce a excellent article… but what / things I say… I procrastinate alot through no indicates manage to get something completed.  Diabetes Freedom

Posted 18 months ago

Comment 20 of 40

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I‘ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.  Cinderella Solution

Posted 18 months ago

Comment 21 of 40

Excellent article. Very interesting to read. I really love reading such a good article. Thank you! Keep swinging. When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style.  Leptitox Review

Posted 18 months ago

Comment 22 of 40

Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information.  Resurge

Posted 18 months ago

Comment 23 of 40

oh well, chris rock is damn funny. i like his corny jokes and stuffs. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.  Resurge Review

Posted 18 months ago

Comment 24 of 40

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon!  Leptitox

Posted 18 months ago

Comment 25 of 40

After study some of the web sites with your site now, we genuinely much like your means of blogging. I bookmarked it to my bookmark site list and will also be checking back soon. Pls check out my internet site too and figure out what you consider.  Leptitox Review

Posted 18 months ago

Comment 26 of 40

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work  Buy Soundcloud Plays

Posted 18 months ago

Comment 27 of 40

It‘s Such an amazing Article I really Love that one Now you can also get some special Coupon Codes From Hurom coupons , So hurry up Get Your‘s Now!!

Posted 18 months ago

Comment 28 of 40

Overall, book reports are not the most favorite type of writing for students and they are not fond of this assignment due to the required extensive reading. With the help of  this writing service https://topwritingservice.com/buy-book-reports/ you can cope with any task you have. 

Posted 17 months ago

Comment 29 of 40

I am really impressed with this kind of  Adam Jensen Coat Article, its pretty hard to write something like that...

Posted 17 months ago

Comment 30 of 40

design of highly reliable and efficient electric motor supplier for marine, robotic, vehicle, hybrid, industrial, and traction industry. We are a reliable  Online assignment writing services australia

Posted 17 months ago

Comment 31 of 40

digital marketing techniques rss feed submission sites ping submission sites search engine submission sites forum submission sites press release submission sites profile creation sites blog commenting sites directory submission sites Digital Marketing Trends article submission sites business listing sites in india classified sites in India Infographic submission sites image submission sites video submission sites PPT Submission Sites PDF Submission Sites Social Bookmarking Sites  benefits of social media

Posted 17 months ago

Comment 32 of 40

social bookmarking sites ping submission sites video submission sites image submission sites must have wordpress plugins Article submission sites pdf submission sites cricket games for android profile creation sites social sharing wordpress plugins Android chess games unfollow app on Instagram Streaming Services Online Instagram Story Apps best fitness bands business listing sites in India How to buy shares online how to update bios Python vs matlab

Posted 17 months ago

Comment 33 of 40

Diet tips

Fitness tips

Free movies download

Posted 17 months ago

Comment 34 of 40

Really very happy to say, your post is very interesting to read. I never stop myself to say something about it. You’re doing a great job. Keep it up.

leptitox review

liptitox

where to buy leptitox

leptitox supplement review

Posted 14 months ago

Comment 35 of 40

This is very fantastic and such a nice as well as so much exciting post content share with us. We have the top-level engineers for Fridge repair Dubai international city service. They can sort out any problems within an hour at very effective rates.

Posted 14 months ago

Comment 36 of 40

https://buytruefollowers.com/soundcloud-likes/

Posted 12 months ago

Comment 37 of 40

buy soundcloud likes review

Posted 12 months ago

Comment 38 of 40

buy 50 soundcloud likes

Posted 12 months ago

Comment 39 of 40

colombo supermarket

online grocery 

online grocery delivery 

online grocery shopping

online grocery order

online pharmacy

online pharmacy delivery

baby care products 

nipuna rice

cream of tartar

Posted 11 months ago

Latest Comment
Comment 40 of 40

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. https://ukbestessays.org/ McClintock, a Latin professor at Hampden-Sydney College in Virginia

Posted 11 months ago
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1156A1
Enter key:
Code Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile


Linked Certification Question(s)

The following are practice certification questions with answers highlighted. These questions were prepared by Mike Prestwood and are intended to stress an important aspect of this KB post. All our practice questions are intended to prepare you generally for passing any certification test as well as prepare you for professional work.

Beginner

2 Beginner Level Questions

Question #1: True or False?

The VB.Net multiple line comment is {} as in:

{
  This is a multiple 
  line comment.
}
Answer:
  • True
  • False
  • Question #2: True or False?

    The VB.Net single line comment is ' and REM as in the following examples:

    'Single line comment.
    REM Old school BASIC single line comment.
    Answer:
  • True
  • False

  •  KB Article #101508 Counter
    21745
    Since 11/14/2008
    Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
    www.prestwood.com


    ©1995-2021 Prestwood IT Solutions.   [Security & Privacy]