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 is the max size of textbox?
How would you Create a Query Builder and Explain its uses
How many types of API functions are availble in VB?
How do I do drag & drop between applications?
Different types of Passing Value?
What does the Implements statement do?
What is the diff between the Create Object and Get object?
What are the different cursor types that can we create using ADO Recordset? Difference between these cursor types?
What is the difference between Object and Class?
what are the types of LockEdits in DAO?
Record set types and Number available in Visual Basic?
What is MAPI ?
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)