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
___ Property is used to count no. of items in a combobox.
What is a thread pool and how are the threads within a thread pool managed?
How come I get a "No Current Record" error when I use a a Data Control on an empty table?
What about DLL calls that require callbacks?
What is dao in visual basic?
____ property is used to lock a textbox to enter a datas.
In which areas the Error occurs?
What is DAO?
What is instantiating?
Data Control missing from toolbox when I use VB under NT3.5. Why?
___,__,___ are the type of combo box?
Types of LockEdits in RDO.
what are the Parts of ODBC?
Difference between DDE and OLE.
Explain OLE Drag and Drop.