评论

第一个有趣的事情是如何写评论。

在 VB .NET 中,你可以通过编写撇号或编写 REM 来编写注释。这意味着编译器不会考虑该行的其余部分。

'This entire line is a comment
Dim x As Integer = 0 'This comment is here to say we give 0 value to x

REM There are no such things as multiline comments
'So we have to start everyline with the apostrophe or REM