Hi,
I am getting the following error and can't figure out why,
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'Mid'
/fido/admin/regSessionReport.asp, line 168
Here is the function which is causing the error and line 168 is highlighted in bold.
If anyone can figure it out I would really appreciate it, Thank you
####################################################
Function getValue(Querystring, Name)
Dim strQueryString, strName, valueStart, valueEnd, strValue
strQueryString = Querystring
strName = Name
'get the starting location of the value
valueStart = InStr(1, strQueryString, strName) + (Len(strName) + 1)
'get the location of the '&' after the value
valueEnd = InStr(valueStart, strQueryString, "&"
'get the value of the value
strValue = Mid(strQueryString, valueStart, valueEnd - valueStart)
GetValue = strValue
End Function
I am getting the following error and can't figure out why,
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'Mid'
/fido/admin/regSessionReport.asp, line 168
Here is the function which is causing the error and line 168 is highlighted in bold.
If anyone can figure it out I would really appreciate it, Thank you
####################################################
Function getValue(Querystring, Name)
Dim strQueryString, strName, valueStart, valueEnd, strValue
strQueryString = Querystring
strName = Name
'get the starting location of the value
valueStart = InStr(1, strQueryString, strName) + (Len(strName) + 1)
'get the location of the '&' after the value
valueEnd = InStr(valueStart, strQueryString, "&"
'get the value of the value
strValue = Mid(strQueryString, valueStart, valueEnd - valueStart)
GetValue = strValue
End Function