Office Basic statements use syntax diagrams and textual conventions that follow these typographical rules:
The syntax of a Office Basic one line statement is illustrated herewith:
A set of Office Basic statements - with optional labels - is using a colon : sign to separate them, it can be terminated with an optional comment. REM or an apostrophe sign introduce a comment.
[ [label:] statement [: …] ] [{REM|'} text]
A set of Office Basic statements - with optional labels - is using a colon : sign to separate them, it can be terminated with an optional comment. REM or an apostrophe sign introduce a comment.
Sub Main
GoTo there ' skip first statement
here: Print 1, : there: Print 2 REM explanatory text here
End Sub