I am passing in these values:
szOld=PDP
szNew=empty
Function FindType(szOld As String, szNew As String)
If ((szOld = "PDP" Or szOld = "PDNP" Or szOld = "PUD") And IsEmpty(szNew)) Then
FindType = "delete"
End If
End Function
Something must be wrong with my logic, or I am still thinking in C, but it seems like my IF statement should evaluate to true, but it is false.
Can someone guide me?
thanks
Fred Emmerich
szOld=PDP
szNew=empty
Function FindType(szOld As String, szNew As String)
If ((szOld = "PDP" Or szOld = "PDNP" Or szOld = "PUD") And IsEmpty(szNew)) Then
FindType = "delete"
End If
End Function
Something must be wrong with my logic, or I am still thinking in C, but it seems like my IF statement should evaluate to true, but it is false.
Can someone guide me?
thanks
Fred Emmerich