clearing an array
this seems like it should be easy, but a couple of things aren't working.
if you have declared an array:
dim arParameters() as string
and then later defined it:
redim arParameters(1,2) as string
how can you clear it out? Sort of like an UNdim ? Not just redefine it
to
another value, but put it back in the state it was in in the first place,
right after the
dim arParameters() as string
Use the Erase statement...
Erase arParameters
You might want to look it up in the help files as it works "differently" for
dynamic as opposed to fixed arrays and what happens depends on the data type
of the array.
Rick
|