ReportingAnalyst
MIS
Hi,
I get this error.
Error Type:
Microsoft VBScript compilation (0x800A03FC)
Expected 'Next'
Line 135 is the bold text below in the code.
I get this error.
Error Type:
Microsoft VBScript compilation (0x800A03FC)
Expected 'Next'
Line 135 is the bold text below in the code.
Code:
If not rs.EOF then
aCategory = rs.GetRows()
'Close the Recordset object
rs.Close
'Delete the Recordset Object
Set rs = Nothing
'Declare Constants for the above SQL columns for better readability
'Use these Constants instead of referring to the array numeric indexes
Const c_Cat_ID = 0
Const c_CatName = 1
Dim iRows
For iRows = 0 to UBound(aCategory, 2)
%>
<ul id="menu">
<li>
<input type="radio" checked name="catid" id="catid<%=aCategory(c_Cat_ID, 0)%>" value="<%=aCategory(c_Cat_ID, 0)%>">
<a href="#" class="a_style"><%=aCategory(c_CatName, 0)%></a>
<ul id="UI_<%=aCategory(c_Cat_ID, 0)%>" style="display: none">
<%
'Call GetProducts (CatID, Counter)
%>
</ul>
</li>
</ul>
<%
Next 'iRows
[bold]End If 'rs.EOF[/bold]
%>