Run-Time Functions

This section describes the Runtime Functions of LibreOffice Basic.

Basic Constants

Constants used in Basic programs


The following statements and functions are for working with variables. You can use these functions to declare or define variables, convert variables from one type to another, or determine the variable type.

Logical Operators

The following logical operators are supported by LibreOffice Basic.

Comparison Operators

Comparison operators compare two expressions. The result is returned as a boolean expression that determines if the comparison is True (-1) or False (0).


The following functions and statements validate and return strings.

Date and Time Functions

Use the statements and functions described here to perform date and time calculations.

Mathematical Operators

The following mathematical operators are supported in LibreOffice Basic.

Numeric Functions

The following numeric functions perform calculations. Mathematical and Boolean operators are described in a separate section. Functions differ from operators in that functions pass arguments and return a result, instead of operators that return a result by combining two numeric expressions.

Screen I/O Functions

This section describes the Runtime Functions used to call dialogs for the input and output of user entries.

File I/O Functions

Use File I/O functions to create and manage user-defined (data) files.

Controlling Program Execution

The following statements control the execution of a program.

Error-Handling Functions

Use the following statements and functions to define the way LibreOffice Basic reacts to run-time errors.

Other Commands

This is a list of the functions and the statements that are not included in the other categories.

Please support us!