Ok i need to compare 2 values from my array but strComp no matter what
returns 1 even though my comparison values are the same
if i do this
str1 = "wed"
str2 = "wed"
strComp(str1, str2) 'returns 0
but if i do
str1 = code(0)
str2 = code(1)
both are "wed" but it returns 1
however if i do
strComp(code(0), code(0)) 'returns 0
I am unsure why it returns 1 even when they are the same, i have even tried
cstr(code(0)) but it still returns 1
my code i am going to use in my page is but its probably irrelevant as its
suffering from same problems as outlined above
tia for the help
For i = 1 to loopcount
If strComp(code(0), code(i), 0) = 0 Then
Response.Write "<tr><td>You must enter the unique code for each item to
continue</td></tr>"
response.write "<tr><td align='center'><a
href='javascript:history.back();'>Please go back and re-enter</td></tr>"
Response.end
Else
Response.Write "<tr><td>The Codes are unique</td></tr>"
response.write "<tr><td align='center'><a
href='javascript:history.back();'>Please go back and re-enter</td></tr>"
Response.end
End If
Next