45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




vb / asp.net Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

VB - What is option base

        

Reply
 
LinkBack Thread Tools Display Modes
Old 24-01-07, 02:03 PM   #1 (permalink)
Junior Member
 
preethisingh's Avatar
 
Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 preethisingh is a jewel in the rough preethisingh is a jewel in the rough preethisingh is a jewel in the rough
VB - What is option base

What is option base? difference between option base and option explicit?

preethisingh is offline Offline   Reply With Quote
Old 18-03-09, 10:27 AM   #2 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 gangabyndoor is on a distinguished road
Re: VB - What is 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 base 0
your array index starts from 0


Option base 1
your array index starts from 1
suppose dim studen(10) as integer
your array varies from a(0) to a(9) if Option base 0

your array varies from a(1) to a(10) if Option base 1
gangabyndoor is offline Offline   Reply With Quote
Old 18-03-09, 10:28 AM   #3 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 gangabyndoor is on a distinguished road
Re: VB - What is option base

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.
gangabyndoor is offline Offline   Reply With Quote
Reply

Tags
base , option


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB - How to trap Data Base Error? preethisingh vb / asp.net Interview / Technical Questions 0 24-01-07 01:38 PM
Position Vacant VB Programmer sridhar Experienced Jobs 0 12-11-06 12:05 PM
Can nebody Help .... My Folder option is disappeared from the tool option... djsan007 SYSTEM SECURITY & ETHICAL HACKING 0 30-10-06 12:57 AM
C++ Contest -1 with answers keerthi DATA STRUCTURES, C, C++, VC ++ 10 07-05-06 03:52 AM


All times are GMT +6.5. The time now is 03:03 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0