One of our servers fried here a couple of weeks back, so we temporarily
switched to run IIS on another server. Well, when the new server replacement
got set up, I started having problems with what I thought was a fairly simple
ASP feature.
<%
Class clsHREF
Dim child(10)
Sub init()
Dim i
For i = LBound(child) To UBound(child)
child(i) = ""
Next
End Sub
End Class
Dim objHREF
Set objHREF = new clsHREF
Call objHREF.init()
Response.Write(objHREF.child(1))
%>
The problem here is that the class level variables that are dimensioned as
arrays are not accessible in the class methods. Not sure why the server does
not recognize this construct, but it gives the following script error:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'LBound'
test.asp, line 7
All that really means is that the child attribute is not recognized (especially
not as an array that has a Lower Bound). Are there any configuration issues on
IIS that might cause it to have grief along these lines? The non-class
features seem to work ok, and I'm connecting with the DB fine, but I can't grok
why this would run afoul.
Thanks,
Chris Rathman