Computer Science Canada How do you do flexible arrays in VB? |
Author: | GlobeTrotter [ Thu Mar 10, 2005 11:12 pm ] |
Post subject: | How do you do flexible arrays in VB? |
Any help would be appreciated. |
Author: | Brightguy [ Thu Mar 10, 2005 11:38 pm ] | ||
Post subject: | Re: How do you do flexible arrays in VB? | ||
For a dynamic array, don't include any array bounds in the declaration. You can change the bounds using the ReDim statement.
If don't want the values in the array to reset when you resize it, add "Preserve" after ReDim. |
Author: | GlobeTrotter [ Fri Mar 11, 2005 12:48 pm ] |
Post subject: | |
Thanks. |