A4uPH‖

aLn5V‖Compiler Options, Runtime Conditions

PEuT6‖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.

note

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


FVEx2‖Syntax:

U5B8L‖Option Statement diagram

aN2F8‖Option Base Statement

7SyG9‖Defines the default lower boundary for arrays as 0 or 1.

7oWmd‖Option ClassModule Statement

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

cULB3‖Option Compatible Statement

6HFov‖Option Compatible extends LibreOfficeDev Basic compiler and runtime, allowing supplemental language constructs to Basic.

DHaWu‖CompatibilityMode() Function

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

r5HhA‖Option Explicit Statement

kHGHE‖Specifies that every variable in the program code must be explicitly declared with the Dim statement.

AXgWX‖Option Private Module

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

dLDx6‖Option VBASupport Statement

Cp5GM‖Specifies that LibreOfficeDev Basic will support some VBA statements, functions and objects.

warning

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