OK so my title is a little weak, but I'm not exactly sure what to call my question.
From what I know of an array to create you do the same thing when you dimension a variable, just with an added parenthesis and a number to determine how many points of storage on in that array.
Example:
Ok I also know that during a for-next loop you can use a variable to call that a specific point of a variable.
Example?:
Now my question is, when I declare the array can I declare the amount of space with a variable? For example could i do something like this:
I have given this a bit of try but can't seem to get it to work.
From what I know of an array to create you do the same thing when you dimension a variable, just with an added parenthesis and a number to determine how many points of storage on in that array.
Example:
Code:
dim array (10) as long
Ok I also know that during a for-next loop you can use a variable to call that a specific point of a variable.
Example?:
Code:
dim int as long
for int = 1 to 10
array (int)= something
next int
Now my question is, when I declare the array can I declare the amount of space with a variable? For example could i do something like this:
Code:
dim int as long 'assume that this variable is given a specific number at some point
dim array (int) as long
I have given this a bit of try but can't seem to get it to work.