option explicit & option implicit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pbcomput
    New Member
    • Mar 2008
    • 1

    option explicit & option implicit

    hiiiiiiii

    can any one explain me wt is option explicit n option implicit...n hw it works ??

    Thanks in advance......
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Option explicit makes it compulsory to declare a variable before using it. Else throws an error. Compiler does not declare a variable of its own of Variant type.

    It is always recommended to use Option Explicit at the start of your code to avoid any conflict in the variable name or type later on .

    Comment

    Working...