Option Explicit Statement

Specifies that every variable in the program code must be explicitly declared with the Dim statement.

note

The Option Explicit statement is evaluated at run time.


Syntax:

Option Explicit

Parameters:

warning

འ་ནི་གསལ་བཤད་དེ་ཚད་གཞི་ནང་ལག་ལེན་འཐབ་བཏུབ་པའི་ལས་རིམ་ཨང་རྟགས་ཀྱི་ཧེ་མ་ཁ་སྐོང་འབད་དགོཔ་ཨིན།


Example:


Option Explicit
Sub ExampleExplicit
Dim sVar As String
    sVar = "Las Vegas"
    i% དོན་ལུ་ = ༡ ལས་ ༡༠ ལུ་ཨར་ཨི་ཨེམ་ རཱན་ཊའིམ་འཛོལ་བ་ནང་འ་ནི་འབྱུངམ་ཨིན།
        Rem
    Next i%
End Sub

Please support us!