J
JimS
I have an event procedure for a form control that steps through selected rows
of a list box and does some actions. One of the columns is multi-valued (1 or
more values separated by semicolons). I use the split() function to put the
column into an array and rifle through its values.
My issue is the array's scope. I declare it inside an if statement deeply
within a larger loop that steps through the rows.
Will the variable go out of scope (I want it to...) when it steps to the
next row in the outer "for each" loop?
If not, how do I reinitialize it so its lower and upper bounds are reset?
Does the assignment to the value of the split() function do that
intrinsically?
of a list box and does some actions. One of the columns is multi-valued (1 or
more values separated by semicolons). I use the split() function to put the
column into an array and rifle through its values.
My issue is the array's scope. I declare it inside an if statement deeply
within a larger loop that steps through the rows.
Will the variable go out of scope (I want it to...) when it steps to the
next row in the outer "for each" loop?
If not, how do I reinitialize it so its lower and upper bounds are reset?
Does the assignment to the value of the split() function do that
intrinsically?