Compiler Options

Spis treści
Indeks 🔎︎

# Compiler Options, Runtime Conditions

Compiler options specified at the module level affect LibreOfficeDev 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 LibreOfficeDev 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.

### Składnia:

## Option Base Statement

Definiuje domyślną dolną granicę tablicy jako 0 lub 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 LibreOfficeDev Basic compiler and runtime, allowing supplemental language constructs to Basic.

## CompatibilityMode() Function

CompatibilityMode() function controls or queries runtime mode. It affects all code executed after setting or resetting the runtime mode.

## Option Explicit Statement

Określa, czy każda zmienna w kodzie programu musi być jawnie zadeklarowana za pomocą instrukcji Dim.

## Option Private Module

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

## Option VBASupport Statement

Określa, że LibreOfficeDev Basic będzie obsługiwał niektóre instrukcje, funkcje i obiekty VBA.

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

Tematy pokrewne

Property statement

Exclusive VBA Functions and Statements

Err Object [VBA]