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

How would you create properties by using class Builder Wizard?

2055


How would you create Visual basic Document file?

2670


What is dao in vba?

1038


How can you get selected file from file system Control?

2059


Explain about the creation of EXE files with Visual Basic?

1072


What do you mean by provider?

1976


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

1552


Draw Sequence Modal of RDO? Explain.

2118


Which method is preferred to save data like database to the disk?

2436


What are the properties of datacontrol?

1997


what is the Difference between Dynaset and Snapshot?

2101


What are the types of API Types.

2659


Explain about an event-driven programming language?

1021


How do I mimic a toggle button?

1520


How about Access 2.0 compatibility?

1492