Visual Basic Comments

The strangest way to comment I have come across in my career is the use of the single quote (‘). Usually a language will use the pound (#) or double backslash (//) and will use the single quote (‘) to specify string values. However for whatever reason in Visual Basic they use the single quote (‘) not a big deal but definitely something that will seem a little strange to anyone coming to Visual Basic from Java or Web based languages.

'Declaring a String variable
Dim myString AS String
// Visual Basic //

Comments & Questions

Add Your Comment