I have a string which contains sometimes a Null value, when i test :
"If sDateDispatch <> Null Then"
I don't have the exception on this, but it don't work
because the exception appears when i test :
"if sDateDispatch.CompareTo("1901-01-01") >0 then "
The code :
If sDateDispatch <> Null Then
If sDateDispatch.CompareTo("1901-01-01") >0 Then
Return
End If
End If
I had the same error, to solve it I had to put a value "" void in the fields of the database and thereby eliminate the null. The problem is with null fields and its treatment as a string in the string object v4a
I have a string which contains sometimes a Null value, when i test :
"If sDateDispatch <> Null Then"
I don't have the exception on this, but it don't work
because the exception appears when i test :
"if sDateDispatch.CompareTo("1901-01-01") >0 then "
The code :
If sDateDispatch <> Null Then
If sDateDispatch.CompareTo("1901-01-01") >0 Then
Return
End If
End If