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
What is connection object in vb net?
What do you mean by provider?
Through which protocol OLEDB components are interfaced?
How do I call help files from a VB program?
What are the new events in textbox that has been included in VB ?
What is dao in visual basic?
How do I get a bitmap picture in a field in an Access database?
What is ActiveX Dll and ActiveX Exe?
What are the properties of datacontrol?
How would you map properties to controls by using ActiveX Control Interface Wizard?
i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI).
what is the Difference between Tabletype and Snapshot?
What is the use of Immediate, Local Window?
which property used to add a menus at runtime?
How can you Navigate from the DHTML application to another DHTML application? .