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!

Initialize Array unsing variable - how? 1

Status
Not open for further replies.

MikeBronner

Programmer
May 9, 2001
756
US
I need to initialize an array with different sizes each time it is run. The size of the array is user-dependant.

using a variable obviously wont work, as it requires a constant. I know that in c++ you can circumvent this issue using the new method (nArray = new int[variable]; instead of int nArray[variable];). How can I do this in VB?

Thanks guys! Take Care,
Mike
 
Thanks :)
I figured that out not 5 minutes after I posted this. Take Care,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top