Ayuda de LibreOffice 7.2
Option Compatible turns on the VBA-compatible Basic compiler mode at the module level.
The function CompatibilityMode() controls runtime mode and affects all code executed after setting or resetting the mode.
Esta opción puede afectar o ser de ayuda en las siguientes situaciones:
Allow special characters as identifiers. all characters that are defined as letter in the Latin-1 (ISO 8859-1) character set, are accepted as part of identifiers.
Permitir el uso de las palabras clave Private/Public en procedimientos.
Hacer obligatorias las instrucciones Set para objetos.
Definir valores predeterminados para parámetros opcionales en procedimientos.
Utilizar argumentos nominados cuando existan múltiples parámetros opcionales.
Precargar bibliotecas de LibreOffice Basic
Es necesario utilizar Option Compatible al codificar módulos de clase.
Option Compatible
Option Compatible
' With this option the code works, otherwise it causes a compiling error
Sub Main
ä = 10
print ä
End Sub
Statement Option VBAsupport 1 sets Option Compatible statement automatically.