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.

warning

Dette uttrykket mÄ setjast inn framfÞre programkoden i ein modul.


Dette alternativet kan pÄverka eller bistÄ i desse situasjonane:

note

Option Compatible er pÄkravd nÄr du kodar klassemodular.


Syntaks:

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.

warning

Use this feature with caution, limit it to document conversion situations for example.


This function may affect or help in the following situations:

note

CompatibilityMode() function may be necessary when resorting to Option Compatible or Option VBASupport compiler modes.


Syntaks:

CompatibilityMode(True | False)

Refer to Identifying the Operating System and Getting Session Information for Option Compatible simple examples, or Access2Base shared Basic library for other class examples making use of Option Compatible compiler mode.

Variables scope modification in Using Procedures and Functions with CompatibilityMode() function.