Comment (computer programming): Difference between revisions

Content deleted Content added
use line instead of inline
BASIC: edit for brevity
Line 601:
</syntaxhighlight>
 
In later variations, including [[Quick Basic]], [[Q Basic]], [[Visual Basic]] (VB), [[Visual Basic .NET|VB.NET]], [[VB ScriptVBScript]], [[FreeBASIC]] and [[Gambas]], a line comment is delimteddelimited with apostrophe<code>'</code> ('apostrophe). An example in Visual Basic VB.NET:
 
<syntaxhighlight lang="vbnet">
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
' Thenew followingstyle codeline is executed when the usercomment
'rem clicksold thestyle buttonline incomment thestill program's window.supported
MessageBox.Show("Hello, World") 'Show ashow pop-up windowdialog with a greeting
rem comments still exist.
 
MessageBox.Show("Hello, World") 'Show a pop-up window with a greeting
End Sub
End Class