[thelist] why doesn't this work? (ASP 2.0)

Lonnie kr43m0r at earthlink.net
Fri Jan 2 19:25:06 CST 2004


> given calculated or retrieved values
> counter = 12
> request.querystring("Version") = 12
> 
> I've tried these but none seem to pass the test
> 
> if request.querystring("Version") = counter then
> if trim(request.querystring("Version")) = trim(counter) then
> if request.querystring("Version") = trim(counter) then
> if trim(request.querystring("Version")) = counter then
> if cint(trim(request.querystring("Version"))) = cint(trim(counter))
> then if trim(cint(request.querystring("Version"))) =
> trim(cint(counter)) then 

Very useful:
if request.querystring("Version")*1 = counter then

...the *1 converts to numeric.



More information about the thelist mailing list