Compiler Options, Runtime Conditions

Compiler options specified at the module level affect Collabora Office Basic compiler checks and error messages. Basic syntax as well as Basic set of instructions can be different according to the options that are in use. The less Option, the easiest and tolerant Collabora Office Basic language is. The more Option, the richer and controlled Basic language gets.

note

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


Синтаксис:

Option Statement diagram

Інструкція Option Base

Визначає типову нижню межу для масивів із допустимих значень 0 чи 1.

Функція Option ClassModule

Тут вказують, що модуль є модулем класу, який містить об'єкти, властивості, процедури та функції.

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

Визначає обов'язковість явного оголошення у програмі всіх змінних за допомогою інструкції Dim.

Option Private Module

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

Інструкція Option VBASupport

Вмикає підтримку в Collabora Office Basic деяких інструкцій, функцій і об'єктів VBA.

warning

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


Будь ласка, підтримайте нас!