LibreOfficeDev 7.4 Help
Option Compatible extends LibreOfficeDev Basic compiler and runtime, allowing supplemental language constructs to Basic.
De optie is handig of werkt door in de volgende situaties:
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.
Allow the New operator to be optional in Dim statements.
Allow default values for optional parameters in procedures.
Use named arguments when multiple optional parameters exist.
Het vooraf laden van LibreOfficeDev 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
De instructie Option VBAsupport 1 zet automatisch de instructie Option Compatible.