Can Redim be used to declare a new array ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / krishna desai
Yes we can use redim to declare a new array
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mirza arif nadeem
yes Redim can be used to declare a new array.
| Is This Answer Correct ? | 10 Yes | 23 No |
What are the different types of Dialog Box?
What is ODBC?
How do I create a new form in visual basic?
What is the different between Microsoft ODBC Driver and Oracle OBDC Driver?
What is ado in vb?
Why doesn't "my string" & Chr$(13) do what I want?
What kind of components can you use as DCOM servers?
what is the Difference between Listindex and Tab index?
What is the difference between modal and moduless window?
What is a Type Library and what is it's purpose ?
What is form in visual basic?
How to use hyperlink?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)