CharlieMike73
Programmer
HELP!!!!
I have a ASP Page that for some reason or another is giving me a type mismatch when I try to add to the number (???).
and
both produce the following error...
Line 469 is the 'NextIndex = NextIndex + 1' line in the first example!
So...
How do I ensure that the Type is a number in a VBScript ASP Page?
I have a ASP Page that for some reason or another is giving me a type mismatch when I try to add to the number (???).
Code:
<%
Dim NextIndex
NextIndex = (rsNextIndex.Fields.Item("NEXT_INDEX").Value)
NextIndex = NextIndex + 1
%>
Code:
<%
Dim NextIndex
NextIndex = (rsNextIndex.Fields.Item("NEXT_INDEX").Value) + 1
%>
Code:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/m_o/mats/reports/TMPd5kgg8iid6.asp, line 496
Line 469 is the 'NextIndex = NextIndex + 1' line in the first example!
So...
How do I ensure that the Type is a number in a VBScript ASP Page?