Compiler Options

Contents

# 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.

### Syntax:

## Option Base Statement

배열의 기본 최저 한도를 0 또는 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 controls or queries runtime mode. It affects all code executed after setting or resetting the runtime mode.

## Option Explicit Statement

프로그램 코드의 모든 변수를 Dim 문을 사용하여 명시적으로 선언해야 한다는 것을 지정합니다.

## Option Private Module

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

## Option VBASupport Statement

Specifies that LibreOffice Basic will support some VBA statements, functions and objects.

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

관련 주제

Property statement

Exclusive VBA Functions and Statements

Err Object [VBA]