I have the following test
Per the debugger
valSDate
value = null
However the code still runs the first part of the if statement, instead of the else section
B4X:
If (valSDate <> Null AND valSDate <> "" AND valSDate.Length>0) Then
dteScheduled.SetDate(DateTime.DateParse(valSDate),True)
Else
dteScheduled.SetDate(-1,True)
End If
Per the debugger
valSDate
value = null
However the code still runs the first part of the if statement, instead of the else section
Last edited: