K
Ken Ward
Guest
I was troubleshooting an issue with our ERP system's report output when i came across a strange behavior of the ABL code. DEFINE PUBLIC PROPERTY TEXT AS CHARACTER NO-UNDO SET (INPUT ip-text AS CHAR): IF ip-text = ? THEN RETURN. IF ip-text = "" THEN RETURN. . . . END SET. This does not work as expected when the passed parameter contains only spaces. In short it appears that in ABL, " " EQ "" is TRUE. I know that in many cases this will not matter, but due to the nature of this module, it matters a great deal. I had to change that check to IF LENGTH(ip-text) = 0 THEN RETURN, so I have resolved the issue for now, but I didn't know that the string comparison worked like that.
Continue reading...
Continue reading...