GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Web  >  VB Script
Go To First  |  Previous Question  |  Next Question 
 VB Script  |  Question 19 of 21    Print  
What is the use of Option Explicit in VBScript?

  
Total Answers and Comments: 2 Last Update: June 12, 2007     Asked by: Remasri 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 27, 2007 01:41:46   #1  
Sumeet Singh Pramar        

RE: What is the use of Option Explicit in VBScript?
To inilialize all the variable before using them.
 
Is this answer useful? Yes | No
June 12, 2007 19:05:58   #2  
Sujatars Member Since: December 2006   Contribution: 217    

RE: What is the use of Option Explicit in VBScript?

When you use the Option Explicit statement, you must explicitly declare all variables using the Dim, Private, Public, or ReDim statements. If you attempt to use an undeclared variable name, an error occurs.

Use Option Explicit to avoid incorrectly typing the name of an existing variable or to avoid confusion in code where the scope of the variable is not clear.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : hi,          VB script supports only one datatype   i.e ) Variantbyvenki chowdary nandipati ...

Latest Answer : Redim statement is used to change the size of Array. ...

Latest Answer : They are different: You dont compile VB scripts like in Visual Basic. You just distribute them as plain text HTML files.The script engine interprets this text into intermediate code when it loads the Web page. It also creates a symbol table so that ...

Latest Answer : Private statement variables are available only to the script in which they are declared.Public statement variables are available to all procedures in all scripts.Variables declared with Dim at the script level are available to all procedures within the ...

Latest Answer : VBScript is supported by Windows 95, Windows NT (including a native version for Alpha), 16-bit Windows, and Unix Solaris. Microsoft is currently working with others to bring VBScript to UNIX versions for HP, Digital, and IBM platforms. ...

Latest Answer : Hi,Using Rem keyword, you can add as many lines of comments as you want.Also single quotes can b e used to add commentsExample:Rem This line is ignoredRem You can also use single quotes to add comment line'Anything ...

Latest Answer : Byte - Integer numbers between 0 to 255 String - Character strings Integer - Large integers between -32,768 and 32,767 Long - Extremely large integers (-2,147,483,648 and 2,147,483,647) Double - Extremely large numbers with decimal points Single ...

Latest Answer : Hi,In VB script , upto 60 dimensions arrays are allowed... ...

Latest Answer : If then else and Select case ...

Latest Answer : Mostly Internet Explorer because both are of microsoft.But it also support netscape. ...


 Sponsored Links

 
Related Articles

What is the use of COUNT with DISTINCT option

COUNT is a group function returns result by summarizing multiple rows. All group by value function will have the usage of DISTINCT or ALL option and so is the COUNT which uses the DISTINCT option. DISTINCT option is used to enforce uniqueness and  if combined with COUNT is used to
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Recording Test Script With WinRunner

How To Use a Wizard to Record a Test Script With WinRunner If you have a script that you want to convert with WinRunner, you can use the DataDriver Wizard to transform the script into a test that is driven by data. For instance, if you want your test script to include things such as checkpoints or v
 

WinRunner Script Design Tips

Scripts play an important role in the function of WinRunner. Those who wish to successful with this program will need to learn how to properly create scripts. In this article, I will provide you with a number of useful tips for script creation. The first tip of script development is to always place
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Finding The Right Student Loan Option

Finding The Right Student Loan Option Finding the right student loan can be a struggle to many students It is one major decision that can make or break a student’ s future financial stability If you make the mistake of getting a student loan that you cannot properly manage as you go along
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape