GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Visual Basic
Go To First  |  Previous Question  |  Next Question 
 Visual Basic  |  Question 409 of 453    Print  
what is option base? diff between option base
and option explicit?
pl explain

  
Total Answers and Comments: 2 Last Update: August 05, 2006     Asked by: pghare 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 22, 2006 02:05:43   #1  
deepali        

RE: what is option base? diff between option base

option base

it is to declare the start of array. for eg. suppose an array is declsed with the dim statement. by default its start from 0 th index. using option base we can declare the start of an array from 1 2 or whatever.

option explicit

it forces you to declare a variable. suppose in an exampl we have declared a variable & trying to access the same variable with spelling mistake. if option explicit is there then it gives error. if its not then the variable is considered as a new variable.


 
Is this answer useful? Yes | No
August 05, 2006 12:45:32   #2  
Ankur Jain        

RE: what is option base? diff between option base

Option Base -

When an array is declared by default starting index number is 0. By using this statement the programmer can change the starting index number. Well but according to coding conventions this concept should not be used.

Option Explicit -

Declaring a variable in Visual Basic by default is not must. Due to this by default every variable are considered as Variant hence unnecessart memory wastage. Well good practice is to declare variable of the type you want to use. Incase if you are not ware of the type u want to declare its better u declare explicity as variant. Well for this statment Option Explicit is used. this is set in top of General Declaration of Form Module. Once declared every variable type must be defined.


 
Is this answer useful? Yes | No

 Related Questions


Latest Answer : Dim fso, hfile, msgvalue Set fso = CreateObject("Scripting.FileSystemObject") Set hfile = fso.OpenTextFile("D:x.txt")  If Not hfile.AtEndOfStream Then  Do While Not hfile.AtEndOfStream  msgvalue = hfile.ReadLine  ...

Latest Answer : Yes we can edit the tdata through flexgrid. ...

Latest Answer : Controls which are data-aware. Controls whose datasource property can be set a datacontrol. ...

Latest Answer : please refer my answer for previous question ...


What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.

Latest Answer : An OLE client application can support the drag-drop feature provided by the SHELL.DLL component of Microsoft Windows version 3.1. The drag-drop feature supports dragging a file from the Windows File Manager and dropping it on any registered drag-drop ...

Latest Answer : Theoritically the oops support is not there but some tricky methods are there.1. Create the function (Even for properties) in a class B2. Use Impements keyword to implement each Function of B in Derived Classs D. With 3. Create a private ...
Tags : OOPS

Latest Answer : Let - Used when assigning a value to the property. Set - Used when assigning an Object to the property. Get - Used when retrieving value of a property.  ...


 Sponsored Links

 
Related Articles

jQuery - Basic Alphabetical Sorting

Learning jQuery Basic Alphabetical Sorting Now let s perform a sort on the Title column of the table We ll need a class on the table header cell so that we can select it properly geshibot lang html" Title Author s Publish Date Price geshibot mosgoogle To perform the actual s
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

Working with XML in Visual Basic

Working with XML in Visual Basic Extensive markup language and Visual Basic is the odd couple of the industry Visual Basic is one of the most common languages that are being used today This Microsoft introduced language was meant to be middle tier in characteristic but has managed to get the top tie
 

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
 

Base Address of the String

What happens when we try to change the value of base address of the string? The base address of the sting takes a special place in the context of strings. This is because suing this base address only the string gets identified. In other words the base address therefore takes the position of constant
 

Explain about TNSPING

You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particular SID. Open Command prompt. Write tnsping < SID for the database connectivity you want to check > If you get the message “Used TNSNAMES
 

SDLC Model Basic Stages

SDLC or the Software Development Life Cycle refers to the steps involved in creating a software from scratch.  During earlier days, software used to be scarce and its creation was comparatively easier.  Developers could create any programs they want and experience no competition. I
 

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
 

Basic PC Skills

For those that have decided to walk into the world of technology, they may be overwhelmed by the types of knowledge that are available.  There are several code languages and words as well as different areas that you can move into.  If you are a beginner in technology, you can fin
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape