[Progress Communities] [Progress OpenEdge ABL] Forum Post: String Compare = true which are not Equal

  • Thread starter Stefan Marquardt
  • Start date
Status
Not open for further replies.
S

Stefan Marquardt

Guest
15 years ABL or longer and I wasn't aware of this feature. :) I know that default is not case sensitive but that spaces are handled similar I didn't know. define variable cTest as character no-undo. cTest = " ". message cTest = "" view-as alert-box. -> yes|true So, a [space] is equal to [blank] Coming from the MS world it's confusing. Help: The equal comparison ignores trailing blanks. Thus, "abc" is equal to "abc ". However, leading and embedded blanks are treated as characters and " abc" is not equal to "abc". It describes the behaviour. But when the operators = and EQ defines not really equal values to equal, which ABL command makes a trusted compare without being more intelligent as the user?

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