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 the-use of property page Wizard in ActiveX Control?
how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?
How would you add elements in TreevieW Control?
Give brief description about class?
Why API functions are Required?
How would you create properties in ActiveX Control?
How should dates be implemented so they work with other language and country formats?
How would you create properties by using class Builder Wizard?
I get a "file not found" error on the IIF function when I distribute by program. Why?
___,___ arguments will be used to run a executable program in shell function
Which property of textbox cannot be changed at runtime. What is the max size of textbox?
How can you Implement windows functionality in VB?
What is instantiating?
Is it possible to Access BackEnd procedures?
How would you map properties to controls by using ActiveX Control Interface Wizard?