What does option Explicit means?
Answers were Sorted based on User's Feedback
Answer / aftab kashif
This means that all variables must be declared before being
put to use.
i.e. they must be exlicitly declared
| Is This Answer Correct ? | 33 Yes | 3 No |
Answer / nishant ranjan
When we use option explicit then we must have to declare
all the variables.
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / 123
It is used to trap the undeclared variables in the modules
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / srinivas shetty
if we want the complier to check for the undeclared
variables then option explicit can be used.
shetty
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / shreya sondur
The Option Explicit statement checks in the module for
usage of any undeclared variables and reports an error to
the user.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / shivnath
When we have to use a variable in a program, Option Explicit
tell us to declare them must else the program will break by
the compiler in run mode. It is an indicator only.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / raju joshi
All the variable which are used witing the program need to
be declared when you use this option
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / antony akkara j.
if we declaring "option explicit" - then we have to declare each variable datatype what is exactly ?. So we can trap undeclared variable(s). But in "option Implicit" - case will be straight opposite.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the use of command Object?
what is the Benefit of wrapping database calls into MTS transactions?
What do you mean by provider?
It possible to call OLEDB's Features directly in VB without using any control?
To connect the Data Control with Back end What are all the properties to be set?
In visual source safe if in middle of my program power was off and it was not save then wat will happen whether it will save or not? can any body tel me the answer for this.
Is there any Edit method in ADO Data Access method?
Can you create a Updatecascade, Deletecascade relation in Ms- Access?
List out the ADO objects?
What is MAPI ?
what is the front end you used?
Where will we give the option explicit keyword and for what?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)