How to Read Syntax Diagrams and Statements

Collabora Office Basic statements use syntax diagrams and textual conventions that follow these typographical rules:

The syntax of a Collabora Office Basic one line statement is illustrated herewith:

Diagram example

syntax of a statement

A set of Collabora 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.

diagram fragment

Textual example

[ [label:] statement [: …] ] [{REM|'} text]

A set of Collabora 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.

Example:

Sub Main
    GoTo there ' skip first statement
    here: Print 1, : there: Print 2 REM explanatory text here
End Sub

Please support us!