LibreOffice 7.1 Help
Określa, czy każda zmienna w kodzie programu musi być jawnie zadeklarowana za pomocą instrukcji Dim.
Option Explicit
This statement must be added before the executable program code in a module.
Option Explicit Sub ExampleExplicit Dim sVar As String sVar = "Las Vegas" For i% = 1 to 10 ' Ta instrukcja powoduje błąd wykonania Rem Next i% End Sub