LibreOffice 7.2 Help
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.
This option may affect or assist in the following situations:
Toestaan van speciale tekens als identifiers. Alle tekens die voorkomen als letter in de Latin-1 (ISO 8859-1) karakterset worden geaccepteerd als deel van identifiers.
Het aanmaken van VBA-constanten met ook niet-afdrukbare tekens.
Support Private/Public keywords for procedures.
Compulsory Set statement for objects.
Default values for optional parameters in procedures.
Named arguments when multiple optional parameters exist.
Het vooraf laden van LibreOffice Basic-bibliotheken
De Option Compatible is verplicht bij het coderen van klasse-modules.
Option Compatible
Option Compatible
' De code werkt alleen met deze optie, anders creëert deze een compilatie fout
Sub Main
ä = 10
print ä
End Sub
Statement Option VBAsupport 1 sets Option Compatible statement automatically.