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

Scope of API's can be of types, what are they?

2337


Explain about arrays?

1115


Can a VB application be an OLE server?

1457


How do I create controls dynamically (at run-time)?

1548


which property used to add a menus at runtime?

2122


How do I implement an accelerator key for a text box?

1562


How do I get my application on top?

1481


Explain about manipulating the recordset object

1045


What is script control?

1113


Is there any Edit method in ADO Data Access method?

2091


Is it posible to Create Tables Through Querydef?

2134


Difference between Class Module and Standard Module?

2723


What is Internet Explorer and its uses?

2313


Is the Access Engine and Visual Basic Pro good enough for database work?

1730


What are the types of line styles available in Treeview Control?

1946