Thread: Redim Problem
View Single Post
Old Sep 22nd, 2004, 11:15 AM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
In VB (not sure about VB .NET, but as you're not using that, it's irrelevant), if you want to redimension an array, you have to define it without any dimensions:
Dim primes() as Integer

Then redimension it at the start.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote