Can Redim be used to declare a new array ?

Answer Posted / kapil

Yes Redim Can be used to create a new array.
There is no need of the dim statement before using ReDim.


Following Code works :

Redim a(5) as int

a(0) = 3
debug.print a(0)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to Manipulate data through flexgrid? Explain.

1556


How would you navigate between one document to another document

1169


Why doesn't "my string" & Chr$(13) do what I want?

1094


___ VB constant make the menu item in centre.

1336


What is the use of Scalewidth and ScaleHeight Proeperty?

1460






How would you attach pictures in column headers of List View Control?

1656


How can you Add API functions to your Application?

1352


Is it possible to set a shortcut key for label?

1393


What is data control in vb?

545


What is Mask Edit and why it is used?

1437


How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic?

908


How can you get selected file from file system Control?

1534


___,__,___ are the type of combo box?

1153


Explain Default cursor Type and LockEdit type in DAO?

688


Is a foo VBX/DLL available as shareware/freeware?

1171