Resizing recreating GLOBAL arrays

Hi
I have a couple of arrays that need to be global and also I need to “recreate” them from scratch in different methods trhouth my app.

I used “Redim myglobalarray (-1)” and seems to be working but I’m not 100% .

Can anyone confirm, thanks
rgds

I think http://documentation.xojo.com/index.php/Redim addresses this and a few other cool things. It’s a good read.

Confirmed :slight_smile:

Why use a global array to redim it locally ? Are you not missing a chance for encapsulation ? Or passing an array parameter ?