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

___ Property is used to count no. of items in a combobox.

1390


What is a thread pool and how are the threads within a thread pool managed?

2031


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

1522


What about DLL calls that require callbacks?

1440


What is dao in visual basic?

960


____ property is used to lock a textbox to enter a datas.

1627


In which areas the Error occurs?

1927


What is DAO?

2022


What is instantiating?

2199


Data Control missing from toolbox when I use VB under NT3.5. Why?

1467


___,__,___ are the type of combo box?

1599


Types of LockEdits in RDO.

2156


what are the Parts of ODBC?

1852


Difference between DDE and OLE.

3307


Explain OLE Drag and Drop.

1921