JavaDude32
Programmer
I'm not sure if this is the correct board, but as this code is in an ASP page and the default language is vbscript I'll post here. I have the following code:
Dim intTemp
For I = 0 to Len(Session("mapFeatures")-1 Step 1
intTemp = Session("mapFeatures"
intTemp = Mid(intTemp,I)'Why isn't MID working??
intTemp = CInt(intTemp)
mapFeatures(intTemp) = "yes"
Next
The Error thrown is:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'Mid'
I thought Mid was a built in function for vbscript (which ASP shouldn't affect that way)? Has anyone ever come across this problem?
BTW
CInt, Len and such works
Dim intTemp
For I = 0 to Len(Session("mapFeatures")-1 Step 1
intTemp = Session("mapFeatures"
intTemp = Mid(intTemp,I)'Why isn't MID working??
intTemp = CInt(intTemp)
mapFeatures(intTemp) = "yes"
Next
The Error thrown is:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'Mid'
I thought Mid was a built in function for vbscript (which ASP shouldn't affect that way)? Has anyone ever come across this problem?
BTW
CInt, Len and such works