Optie Compatibiliteit Statement
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.
Deze optie kan invloed hebben op of helpen in de volgende situaties:
Speciale tekens toestaan als identifiers.
Maak constantes met in begrip van niet afdrukbare tekens.
Ondersteun Persoonlijke/Openbare sleutelwoorden voor procedures.
Verplichte Set opdrachten voor objecten.
Standaardwaardes voor optionele parameters in procedures.
Named arguments when multiple optional parameters exist.
Preload van LibreOffice Basic-bibliotheken
Optie Compatibiliteit is nodig als klassemodules worden gecodeerd.
Option Compatible
CompatibilityMode() Functie
CompatibilityMode() function is controlling runtime mode and affects all code executed after setting or resetting the mode. Option Compatible turns on VBA compatibility at module level for the LibreOffice Basic compiler.
Use this feature with caution, limit it to document conversion situations for example.
Deze functie kan invloed hebben op of helpen in de volgende situaties:
Creating enumerations with Enum statement
Updating Dir execution conditions
Running RmDir command in VBA mode
Changing behaviour of Basic Dir command
CompatibilityMode() function may be necessary when resorting to Option Compatible or Option VBASupport compiler modes.
CompatibilityMode(True | False)