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.


Option Statement diagram

Expressi贸 base

Defineix el l铆mit inferior per defecte per a matrius com a 0 o 1.

Opci贸 ClassModule expressi贸

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

Expressi贸 compatible amb opcions

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

COMpatibilityMode() Funci贸

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

Opci贸 Expl铆cita expressi贸

Especifica que totes les variables del codi del programa s'han de declarar expl铆citament amb l'expressi贸 Dim.

Option Private Module

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

Opci贸 VBASupport Expressi贸

Especifica que el LibreOffice Basic admetr脿 algunes instruccions, funcions i objectes VBA.


Les opcions especificades a nivell de m貌dul tamb茅 afecten el condicions b脿siques d'execuci贸 del. El comportament de les instruccions b脿siques del LibreOffice pot diferir.

Ens cal la vostra ajuda!