Compiler Options, Runtime Conditions

A modulszinten megadott fordítási beállítások befolyásolják a Collabora Office Basic fordító ellenőrzések és hibaüzenetek. A Basic szintaxis, valamint a Basic utasításkészlet a használt opcióknak megfelelően eltérő lehet. Minél kevesebb az Option, annál könnyebb és toleránsabb a Collabora Office Basic nyelv. Minél több az Option, annál gazdagabb és ellenőrzöttebb lesz a Basic nyelv.

note

Compiler options must be specified before the executable program code in a module.


Szintaxis:

Option Statement diagram

Option Base Statement

A tömbök alapértelmezett alsó határaként a 0-t vagy az 1-et határozza meg.

Option ClassModule Statement

Specifies that the module is a class module that contains members, properties, procedures and functions.

Option Compatible Statement

Option Compatible extends Collabora Office Basic compiler and runtime, allowing supplemental language constructs to Basic.

CompatibilityMode() Function

CompatibilityMode() function controls or queries runtime mode. It affects all code executed after setting or resetting the runtime mode.

Option Explicit Statement

Ezen utasítás használata esetén a programkódban levő minden egyes változót a Dim utasítással explicit meg kell adni.

Option Private Module

Specifies that the scope of the module is that of the Basic library it belongs to.

Option VBASupport Statement

Megadja, hogy a Collabora Office Basic támogat-e a néhány VBA utasítást, függvényt vagy objektumot.

warning

Options specified at the module level also affect Collabora Office Basic runtime conditions. The behaviour of Collabora Office Basic instructions can differ.


Támogasson minket!