Can I set the limit of an array variable using another variable in Classic ASP/VB?

Viewed 63

This works:

Dim list(9)

But this doesn't:

max_value = 9
Dim list(max_value)

How can I set the limit of this Array Variable using another integer variable (max_value)? I need to do this because the limit of list() will be the maximum value of an auto-incremented value from database.

Or, is it possible to don't set any limit? Or should I just set 999999 as the limit?

1 Answers
Related