Compiler Options

Inhoud
Index 🔎︎

# Compiler Options, Runtime Conditions

Compiler options specified at the module level affect LibreOffice Basic compiler checks and error messages. Basic syntax as well as Basic set of instructions can be different according to the options that are in use. The less Option, the easiest and tolerant LibreOffice Basic language is. The more Option, the richer and controlled Basic language gets.

Compiler options must be specified before the executable program code in a module.

### Syntaxis:

## Optie Base Instructie

Definieert de standaardwaarde voor de ondergrens van matrices als 0 of 1.

## Option ClassModule Statement

Specifies that the module is a class module that contains members, properties, procedures and functions.

## Option Compatible Statement

Option Compatible extends LibreOffice Basic compiler and runtime, allowing supplemental language constructs to Basic.

## CompatibilityMode() Function

CompatibilityMode() function is controlling runtime mode and affects all code executed after setting or resetting the mode.

## Option Explicit Statement

Definieert dat elke variabele die gebruikt wordt in de programmacode, expliciet moet worden gedeclareerd met de Dim-instructie.

## Option Private Module

Specifies that the scope of the module is that of the Basic library it belongs to.

## Option VBASupport Statement

Geeft aan dat LibreOffice-Basic sommige VBA statements, functies en objecten ondersteunt.

Options specified at the module level also affect LibreOffice Basic runtime conditions. The behaviour of LibreOffice Basic instructions can differ.

Verwante onderwerpen

Property statement

Exclusieve VBA-functies en instructies

Err Object [VBA]