VB.NET Language in a Nutshell

   
Rem Statement

Syntax

Rem comment ' comment

comment (optional)

A textual comment to place within the code

Description

Use the Rem statement or an apostrophe ( ' ) to place remarks within the code.

Rules at a Glance

Programming Tips and Gotchas

VB.NET/VB 6 Differences

In VB 6, if a line containing a comment ends in an underscore (the line continuation character), the following line is interpreted as a comment as well. In VB.NET, line continuation characters are ignored at the end of a comment line; each comment line must be prefaced with the Rem statement or the ' symbol.

   

Категории