02-21-2023, 02:26 PM
(02-21-2023, 01:07 AM)bplus Wrote: Nope! It is not about using variables for lbound or ubound.Hi dear
REDIM MyDynamicArray(... ) ' this is dynamic
DIM MyStaticArray(... ) ' this is static
Quiz: How do you reset all values to 0 (or "") in Static Array, how do you do it with Dynamic Array?
Please read #23
Or at this link
Dim & Redim
DIM myArray (1 to 4) AS INTEGER ' this is static
DIM my2ndArray (1 to M) AS INTEGER' This is dynamic and M =0
IMHO
Dynamic Array
When you change dimensions of array it is restored to default value (0 or "")