# \[ASP\] Null blues

**URL:** <https://forum.kirupa.com/t/asp-null-blues/78028>\
**Category:** programming\
**Created:** [February 1, 2005, 4:21pm UTC](https://forum.kirupa.com/t/asp-null-blues/78028 "2005-02-01T16:21:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitgeorge](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@amitgeorge](https://forum.kirupa.com/u/amitgeorge)\
**Post date:** [February 1, 2005, 4:21pm UTC](https://forum.kirupa.com/t/asp-null-blues/78028/1 "2005-02-01T16:21:17Z")

</div>

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 ?
