theEclipse
Programmer
Can someone please verify for me that this is how bad things really are?
I did this
and got: 0 -1
why do I care?
because cint("") is zero, so
if cint(request.form("count"))>-1 then
....
end if
will execute if request.form("count")[ol A][li] doesnt exist[/li][li]is greater than -1 (as it should)[/li][li]and if it is false!!!![/li][/ol]
does this seem abit annoying to anyone else?
anybody have any ideas as to how to get around it?
all I want is to test and see if a value exists and if it is a number greater than -1
Robert Carpenter
"You and I have need of the strongest spell that can be found to wake us from the evil enchantment of worldliness." - C.S. Lewis (The Weight of Glory)
robert (at) robertcarpenter (dot) net
I did this
Code:
<% response.write(cint(false) & " " & cint(true)) %>
and got: 0 -1
why do I care?
because cint("") is zero, so
if cint(request.form("count"))>-1 then
....
end if
will execute if request.form("count")[ol A][li] doesnt exist[/li][li]is greater than -1 (as it should)[/li][li]and if it is false!!!![/li][/ol]
does this seem abit annoying to anyone else?
anybody have any ideas as to how to get around it?
all I want is to test and see if a value exists and if it is a number greater than -1
Robert Carpenter
"You and I have need of the strongest spell that can be found to wake us from the evil enchantment of worldliness." - C.S. Lewis (The Weight of Glory)
robert (at) robertcarpenter (dot) net