Skip to Content
Former Member
Nov 27, 2009 at 10:12 AM

reset a dynamic array


if i declare an array variable

numbervar array x;

and at some point i use

redim x[5]

is there any way i can then get back to an array with no elements - as if I'd just done the declaration again.

At the moment I'm using an array to collect field values - it works OK for an ungrouped report, but if I introduce grouping I want to get back to a cleared starting point for each group.

If not, I guess i will have to start with a x[1] always present and collect data starting at x[2].