Free Dinamic array

O

Oded Kovach

Hello there

I have a dinamic array that grows according to data using Redim Preserve

How can i free it on the the end of the function or where i need?
 
B

Bruno Campanini

Oded Kovach said:
Hello there

I have a dinamic array that grows according to data using Redim Preserve

How can i free it on the the end of the function or where i need?

Erase YourArray

Ciao
Bruno
 
D

david epsom dot com dot au

If it is a local variable, it will be free'd when the
function exits. If it is a global or static variable,
you can redim it again to a smaller size
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top