Hi,
Over the years I've run into this issue when comparing values and it is happening again. So, here I am asking you guys the big why?
The value for alltrim(lcUserID) is "sa", and the value for Alltrim(lcDecUserStr) is "" (empty). I've also replaced != with <> with same incorrect results.
This is clearly not equal to each other no matter how we see it. Setting exact=on makes it show as .T. in the debugger. However, we can clearly see they are NOT equal, so why does the debugger see it differently?
Can anyone shed some light on this, as I've had this unexpected behavior over many years now.
See screenshot of debugger...
Thanks, Stanley
Over the years I've run into this issue when comparing values and it is happening again. So, here I am asking you guys the big why?
Code:
lcUserID = Inputbox('Enter UserID String', 'License Server UserID', lcDecUserStr, 30000)
If Alltrim(lcUserID) != Alltrim(lcDecUserStr)
Replace Setup.ls_conn_user_string With goCrypt.EncryptStringENC(lcUserID)
The value for alltrim(lcUserID) is "sa", and the value for Alltrim(lcDecUserStr) is "" (empty). I've also replaced != with <> with same incorrect results.
This is clearly not equal to each other no matter how we see it. Setting exact=on makes it show as .T. in the debugger. However, we can clearly see they are NOT equal, so why does the debugger see it differently?
Can anyone shed some light on this, as I've had this unexpected behavior over many years now.
See screenshot of debugger...
Thanks, Stanley