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
Scope of API's can be of types, what are they?
Explain about arrays?
Can a VB application be an OLE server?
How do I create controls dynamically (at run-time)?
which property used to add a menus at runtime?
How do I implement an accelerator key for a text box?
How do I get my application on top?
Explain about manipulating the recordset object
What is script control?
Is there any Edit method in ADO Data Access method?
Is it posible to Create Tables Through Querydef?
Difference between Class Module and Standard Module?
What is Internet Explorer and its uses?
Is the Access Engine and Visual Basic Pro good enough for database work?
What are the types of line styles available in Treeview Control?