I am trying to set a dynamic array with the rows retrieved from a table.
I tried this
sqlString = "SELECT Count(Distinct Date) total"
sqlString = sqlString & " From ProjectNotes"
SET RS = Conn3.Execute(sqlString)
' Used to keep track of Array placement.
total = RS("total"
dim timearray((total))
I get the error
Microsoft VBScript compilation error '800a0402'
Expected integer constant
/HTMLpages/Projects/searches/month_metrics.asp, line 35
dim timearray("total"
--------------^
Is it possible to do this and if not how can I do it another way.
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
I tried this
sqlString = "SELECT Count(Distinct Date) total"
sqlString = sqlString & " From ProjectNotes"
SET RS = Conn3.Execute(sqlString)
' Used to keep track of Array placement.
total = RS("total"

dim timearray((total))
I get the error
Microsoft VBScript compilation error '800a0402'
Expected integer constant
/HTMLpages/Projects/searches/month_metrics.asp, line 35
dim timearray("total"

--------------^
Is it possible to do this and if not how can I do it another way.
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)