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 / amy

Array's and strings are immutable..ie...the same array and
string cannot be increased or decreased but a new memory(a
new size can be declared here) is allocated and by using the
preserve keyword the old data is copied onto to the new array.

Now copying from old to new is lengthy procedure...though it
happens internally it will still have a major impact on the
performance of the program. To overcome this we can go for
Collections in Array's and String builder for strings.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is DAO?

1982


What are the different procedures associated with the object?

995


what is the Difference between Linked Object and Embedded Object?

2218


What is OLEDB?

1953


Types of LockEdits in DAO? 51 .Types of Recordsets.

1834


Is visualvm free?

1043


Explain the working of templates?

957


How many types of API functions are available in VB?

2417


Write the steps in Creating ActiveX Dll and Active Exe?

2002


What are the properties of datacontrol?

1900


____ is the difference between Listindex and Tab index.

1859


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

1451


Types of LockEdits in RDO.

2037


How do I make the mouse cursor invisible/visible?

1303


Explain the "cursortype" and "Locktype" in VB?

4465