LibreOffice 25.2 Help
Specificeert dat elke variabele in de programmacode expliciet moet worden gedeclareerd met de Dim-instructie.
De Option Explicit-instructie wordt tijdens runtime geëvalueerd.
Option Explicit
Option Explicit
Sub ExampleExplicit
Dim sVar As String
sVar = "Las Vegas"
For i% = 1 To 10 ' Dit resulteert in een run-time fout
Rem
Next i%
End Sub