Kbase 17615: how to: case-sensitive equality comparison between variables
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
how to: case-sensitive equality comparison between variables
How to perform a case-sensitive equality comparison between two
variables:
def var a as char init "Progress Rules".
def var b as char init "progress rules".
instead of doing:
if a = b then.... which will give you an equality match, but
or if a <> b then... does not take the case into consideration.
do:
if encode(a) = encode(b) then....
Submitted by: Tim Townsend, Sr Analyst, Software Solutions, Inc.
http://www.takestock.com
Progress Software Technical Support Note # 17615