SnaveBelac
Programmer
I am doing domething very simple. Requestng a form variable and converting it to an integer. The form variable is set to 0 so I know that it is an intger but I keep getting a typemismatch error when the page is processed !! The code is below...
I think I must be missing something stupid but I just cant figure out what it is !
I hope someone can help...
-----------------------
SnaveBelac - Adventurer
-----------------------
Code:
<%
curPage = "quote"
SectionArray = Trim(Request.Form("SectionArray"))
arrSection = Split(SectionArray, ",")
For i = 0 to UBound(arrSection)
arrSection(i) = Trim(arrSection(i))
Next
arrayIndex = Trim(Request.Form("arrayIndex"))
if arrayIndex <> "" Then arrayIndex = CInt(arrayIndex)
If arrayIndex = "" Then
section = "start"
elseif arrayIndex < UBound(arrSection) Then
section = arrSection(arrayIndex)
else
section = "final"
End If
%>
I think I must be missing something stupid but I just cant figure out what it is !
I hope someone can help...
-----------------------
SnaveBelac - Adventurer
-----------------------