Hi All,
What is the difference between Option Explicit and Option Declare?
Can anyone explain the difference in usage?
Thanks in advance,
kamal
Hi All,
What is the difference between Option Explicit and Option Declare?
Can anyone explain the difference in usage?
Thanks in advance,
kamal
Subject: Option Explicit and Option Declare
Both points to same thing. Used for restricting implicit variable declarations. For details check :“LotusScript Aliases” in domino designer help.
Subject: all your questions are easily found in the Notes help files
It is all outlined very clearly in the Notes Help files, as is 98% of all the other questions you are asking.
this is a forum for people who are having trouble — it is NOT a training facility for your personal use
Subject: Option Explicit and Option Declare
From Notes help:
Disallows implicit declaration of variables.
Syntax
Option Declare
Explicit is acceptable in place of Declare.
Usage
Option Declare can be specified only once in a module, and only at the module level.
If the Option Declare statement appears in a module, then undeclared variables will generate syntax errors. When Option Declare is in effect, you must use the Dim statement to declare variables, except for arrays. You can still define an array implicitly using the ReDim statement.
Option Declare must be used before any variables are implicitly declared.