Use IF TRIM(X) = TRIM(Y) THEN ...

-----Original Message-----
From: Stewart Leicester [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 11:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [U2] SPACE character ignored


>How can I force them to be tested for TXT equivalence?
>
>Do I have to say:
>
>IF X = Y AND LEN(X) = LEN(Y) THEN true
>
>Except  if X = ' 1' and Y = '1 '  then LEN(X) = LEN(Y) ...
>
>It seems that leading or trailing spaces are ignored (but not embedded
>spaces) so I have to say
>
>IF LEN(X) = LEN(TRIM(X)) AND LEN(Y) = LEN(TRIM(Y)) AND X = Y THEN true
>


if 'X':X = 'X':Y then...

Crude, but works everywhere if you want X and Y to always be treated 
as strings.

Stewart
-- 
Stewart Leicester                | http://www.ThreatFocus.com
V.P. Engineering                 | mailto:[EMAIL PROTECTED]
Threat Focus, Inc.               | 925-551-0130 Voice
"Knowledge is your best defense" | 509-695-1373 Fax
-------
u2-users mailing list
[EMAIL PROTECTED] http://www.u2ug.org/listinfo/u2-users 
--------------------------------------------------------
 
THIS MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS 
ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL, AND EXEMPT 
FROM DISCLOSURE UNDER APPLICABLE LAW. If the reader of this message is not the 
intended recipient, or the employee or agent responsible for delivering the message to 
the intended recipient, you are hereby notified that any dissemination, distribution, 
forwarding, or copying of this communication is strictly prohibited. If you have 
received this communication in error, please notify the sender immediately by e-mail 
or telephone, and delete the original message immediately. For more information, 
please visit http://www.bakerlaw.com.  Thank you.   
--------------------------------------------------------
-------
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users

Reply via email to