Click to See Complete Forum and Search --> : VBScript


December 3rd, 1999, 01:41 PM
What is the syntax for performing an inline variable substitution using VBScript?

I want to either dim an array or redim a dynamic array based on a calculated value; however,
I always receive an error stating "expected integer constant".

The syntax I am using is as follows:

int_num_rows = RS("Count")
dim array(int_num_rows)

-or-
dim array()
int_num_rows = RS("Count")
redim array(int_num_rows)

Is there someway this is possible to accomplish?

Any help is greatly appreciated. Thanks.