[ASP] Null blues

a = “-1”
b = Null
c = “2”
d = “”

i would like to have a method to convert any value to numeric type.

using CInt is not enough since it doesnt convert Null values

So what i do is

myint = 1 * (“0” & mytext)

This works for everything except when a negative value is used.

anybody’s got a better idea ?