i was suprised when value "NaN" comming into check of below code was recognized as correct value for double parse :O and went into if and nto else... Do you know why is that and how to secure my code better to avoid such situation. Value should go to if only if number can be converted to double.
If Double.TryParse(array(3), doubleitem) Then
array(3) = doubleitem
Else
array(3) = Nothing
End If