Activa JavaScript nel restolador p'amosar l'ayuda de LibreOfficeDev.

Option Explicit Statement

Especifica que toles variables del códigu del programa tienen de declarase de forma esplícita cola instrucción Dim.

note

The Option Explicit statement is evaluated at run time.


Syntax:

Option Explicit

Parameters:

warning

This statement must be added before the executable program code in a module.


Example:


Option Explicit
Sub ExampleExplicit
Dim sVar As String
    sVar = "Las Vegas"
    For i% = 1 to 10 ' Esto provoca un fallu en tiempu d'execución
        Rem
    Next i%
End Sub