IBM Lotus Symphony


Option Explicit-Anweisung [Laufzeit]

Legt fest, dass jede Variable im Programmcode explizit mit der Dim-Anweisung deklariert werden muss.

Syntax:

Option Explicit

Parameter:

Symbol für Warnung Diese Anweisung muss in einem Modul vor dem ausführbaren Programmcode stehen.

Beispiel:

Option Explicit

Sub ExampleExplicit

Dim sVar As String

sVar = "Las Vegas"

For i% = 1 to 10 REM Dies führt zu einem Laufzeitfehler

REM

Next i%

End Sub


Produktfeedback | Zusätzliche Dokumentation | Marken