Option Compatible-uttrykket
Option Compatible slÄr pÄ VBA-kompatible Basic kompileringsmodus pÄ modulnivÄ. Funksjionen CompatibilityMode() kontrollerer kÞyretidsmodus og pÄverkar all kode som vert kÞyrd etter at modus er sett.
Dette alternativet kan pÄverka eller bistÄ i desse situasjonane:
Tillat spesialteikn som identifikatorar.
Laga konstantar ogsÄ med teikn som ikkje kan skrivast ut.
StĂžttar Private-/Public-nĂžkkelord for prosedyrar.
Tvungne Set-utsegner for objekt.
Standardverdiar for valfrie parameterar i prosedyrar.
Namngjevne argument nÄr det finst valfrie parameterar.
FĂžrehandslasting av LibreOffice Basic-bibliotek
Option Compatible er pÄkravd nÄr du kodar klassemodular.
Option Compatible
CompatibilityMode()-funksjonen
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.
This function may affect or help in the following situations:
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)