UPDATE:
FYI: This works:
boolean lb_valid
string ls_column
lb_valid = IsNull (adw_object)
IF (NOT (lb_valid)) THEN RETURN // <--- the lb_valid value is FALSE at this point, as it should be.
lb_valid = IsValid (adw_object)
IF (NOT (lb_valid)) THEN RETURN
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PowerBuilder 2019R3, b2703
Windows 10, 64 bit platform
This bit of ancient code is failing because the return value of the ISNULL function is TRUE instead of FALSE, as it shoudl be.
Note that PowerBuilder's IDE in debug mode recognizes that the object is NULL. I hovered the mouse over the variable before taking the screen shot.
Is there something I can do to correct this?
Thanks!
Could be that it's different in 2019...
If the variable is of a reference type (a type derived from the PowerObject base class), IsNull returns true if the variable has not been initialized by assigning an instantiated object to it.