As long as you initially Dim an array in the main program you can Dim it again anywhere, including in functions, but as was said above, all the existing values will be deleted.
A Redim command which preserves the data would be near to the top of my Blitz wishlist. As it stands, you need to have a spare array for each different array data type you might want to re-dimension - including custom type pointer arrays - which is ridiculous when all that is (mostly) required is a routine to copy the area of memory where the array data is stored.
A Redim command which preserves the data would be near to the top of my Blitz wishlist. As it stands, you need to have a spare array for each different array data type you might want to re-dimension - including custom type pointer arrays - which is ridiculous when all that is (mostly) required is a routine to copy the area of memory where the array data is stored.