DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Using ChD and NoValue

Solved!
Go to solution

Hi all,

 

The following line of code returns null even when the two data points are not NV. The syntax seems ok to me so what am I doing wrong?

 

If ChD(1, "Working/YDeadBandY") <> NV And ChD(2, "Working/YDeadBandY") <> NV Then

I know that I can use IsNull, but I'd still like to know what's wrong with the above line if possible.

 

Thanks,

 

Simon.

0 Kudos
Message 1 of 2
(2,028 Views)
Solution
Accepted by topic author Simon_Aldworth

Hey Simon,

 

The reason that this test does not work is that within VBScript, a NoValue is converted to a NULL. As a NULL and a NoValue are not the same (for the purposes of this test), this is why the statement does not work.

 

For a concrete reference to this please see this Knowledgebase article.

 

Let me know if this answers this question for you!

 

MItch

0 Kudos
Message 2 of 2
(1,999 Views)