CitectVBA Programming Reference > Understanding CitectVBA Language Basics > Option Statements

Option Statements

CitectVBA supports the use of file scope Optionstatements which determine the default behaviour of some CitectVBA functions. For instance, the Option Explicitstatement causes the CitectVBA compiler to produce compile errors whenever it encounters the use of previously undeclared variables. The Option Comparestatement sets the default comparison method for string comparisons. The Option Basestatement sets the default base number for CitectVBA variable arrays to either zero or one.

You must declare all optionstatements in CitectVBA at the beginning of your CitectVBA code files.

See Also

Option Explicit statement

Option Compare statement

Option Base statement

CitectVBA Function Reference