Hello, Everyone.
I am maintaining javascript code from another developer on Internet Explorer 8.
I have a recordset that returns only one field and that field is null.
A record exists but the value of the field is null.
I tried testing for null in the field value but I am missing something.
I thought the code below would catch it but it does not. The debug line writes 'myCount=Null'
How do I test for null if this is not the way?
Thanks, Everyone.
Patrick
I am maintaining javascript code from another developer on Internet Explorer 8.
I have a recordset that returns only one field and that field is null.
A record exists but the value of the field is null.
I tried testing for null in the field value but I am missing something.
I thought the code below would catch it but it does not. The debug line writes 'myCount=Null'
How do I test for null if this is not the way?
Code:
if(curs("CountItems")) {
myCount=curs("CountItems")
}
else{
myCount=1
}
if(debug){
Write("myCount=" + myCount+ "<br>")
}
Thanks, Everyone.
Patrick