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.

note

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


Sintaxis:

Option Statement diagram

Instrucci贸n Option Base

Define el l铆mite inferior predeterminado para las matrices en 0 y 1.

Instrucci贸n Option ClassModule

Especifica que el m贸dulo es un m贸dulo de clase que contiene miembros, propiedades, procedimientos y funciones.

Instrucci贸n Option Compatible

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

Funci贸n CompatibilityMode()

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

Instrucci贸n Option Explicit

Especifica que todas las variables del c贸digo del programa deben declararse de forma expl铆cita con la instrucci贸n Dim.

Option Private Module

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

Instrucci贸n Option VBASupport

Establece que LibreOffice Basic admitir谩 algunas instrucciones, funciones y objetos de VBA.

warning

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


隆Necesitamos su ayuda!