Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting array size with a variable

Status
Not open for further replies.

motte

Programmer
May 31, 2001
155
US
Hi all,

Why does this not work?

dim somesize
somesize=4
dim somearray(somesize)

I have no specific code to give, but I am wondering why you need an actual value and can't use a variable to set an array's size.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top