[Stackoverflow] [Progress OpenEdge ABL] Whitespaces on the right side dont matter when comparing

Status
Not open for further replies.
A

Adrian Lach

Guest
DEFINE VARIABLE a AS CHARACTER NO-UNDO.
DEFINE VARIABLE b AS CHARACTER NO-UNDO.
a = "123".
b = "123 ".

MESSAGE a = b
VIEW-AS ALERT-BOX.

MESSAGE LENGTH(a) = LENGTH(b)
VIEW-AS ALERT-BOX.


Does anyone know, why the first equals returns true? Are whitespaces ignored on the right side? Because a whitespace on the left would cause the equals to be false. It also doesn't matter how many whitespaces there are on the right side.

Thank you all

Continue reading...
 
Status
Not open for further replies.
Top