Resetting the array size to Zero.

  • Thread starter Thread starter Hari Prasadh
  • Start date Start date
H

Hari Prasadh

Hi,

How do I reset the size of a One-Dimensional array to ZERO elements. The
array in question is a Public array

Public flag() As Byte

Within some For loop I define the array to be of some size using "ReDim
Preserve flag(UBound(flag) + 2)"

After the for loop is over I want to redefine the size of the array to be
NULL.

How do i do it. I tried "ReDim flag() As Byte" but it is giving me a compile
error.

Please guide me.
 

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

Back
Top