LOTUSSCRIPT LANGUAGE


Option Declare statement
Example

Disallows implicit declaration of variables.

Syntax

Option Declare

Explicit is acceptable in place of Declare.

Usage

Option Declare can be specified only once in a module, and only at the module level.

If the Option Declare statement appears in a module, then undeclared variables will generate syntax errors. When Option Declare is in effect, you must use the Dim statement to declare variables, except for arrays. You can still define an array implicitly using the ReDim statement.

Option Declare must be used before any variables are implicitly declared.

Example
See Also