LibreOffice 7.1 Hjelp
LibreOffice Basic statements use syntax diagrams and textual conventions that follow these typographical rules:
LibreOffice Basic keywords or functions use proper casing: Call, DimArray, InputBox, Property.
Lowercase characters indicate information to supply: end, expression, start, variable.
The syntax of a LibreOffice Basic one line statement is illustrated herewith:
Basic statement diagrams start and end with double vertical bars,
Loops indicate a possible repetition, an optional separator may be present,
Rectangles denote subsequent diagram fragments,
Diagram fragments extremities exhibit single vertical bars.
A set of LibreOffice 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.
[opt1|opt2|opt3] Items inside brackets are optional, alternatives are indicated with a vertical bar,
case[[sep]…] Eit ellipseteikn (…) indikerer ei mogleg gjentaking. Du kan bruka eit valfritt separatorteikn.
{choice1|choice2} Element inne i krøllparentes er obligatoriske. Alternativ er indikerte med ein loddrett strek.
[ [label:] statement [: …] ] [{REM|'} text]
Eit sett med LibreOffice Basic-uttrykk – med valfrie etikettars – brukar eit kolon : som skiljeteikn mellom dei. Det kan avsluttast med ein valfri merknad. REM eller ein apostrof (') innleiar ein merknad.
Sub Main
GoTo there ' hopp over det første uttrykket
here: Print 1, : there: Print 2 REM forklarande tekst her
End Sub