Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can Redim be used to declare a new array ?

Answer Posted / ashok s bhosale

Redim can be Used Create New array of different length
eg
Dim arr() As Integer
ReDim arr(3)
arr(0) = 1
arr(1) = 2
arr(2) = 3

MsgBox arr(0) & ":" & arr(1) & ":" & arr(2)
'It Print 1,2,3

ReDim arr(4)

MsgBox arr(0) & ":" & arr(1) & ":" & arr(2) & ":" & arr(3)

it display 0,0,0,0
it reinitilize all element to 0 it means it create new Array

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the-use of property page Wizard in ActiveX Control?

2012


how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?

2452


How would you add elements in TreevieW Control?

2019


Give brief description about class?

1906


Why API functions are Required?

2246


How would you create properties in ActiveX Control?

1898


How should dates be implemented so they work with other language and country formats?

1431


How would you create properties by using class Builder Wizard?

2607


I get a "file not found" error on the IIF function when I distribute by program. Why?

1519


___,___ arguments will be used to run a executable program in shell function

1808


Which property of textbox cannot be changed at runtime. What is the max size of textbox?

1038


How can you Implement windows functionality in VB?

2116


What is instantiating?

1878


Is it possible to Access BackEnd procedures?

2092


How would you map properties to controls by using ActiveX Control Interface Wizard?

2245