When you compare numeric strings you can get odd results if you do not first 
*normalize* them into pure numbers, instead of strings.

You can force this by doing something like A = A + 0, but for an array you 
would have to act upon each multivalue singly.
This is what the COMPARE function does itself in right justification mode, but 
a normal equate will *not* do the same way



-----Original Message-----
From: Bill Brutzman <[email protected]>
To: U2 Users List <[email protected]>
Sent: Fri, Jul 20, 2012 5:37 pm
Subject: Re: [U2] Comparing Two Dyamic Arrays


Will;
. Thanks for writing.
. I tried the true and false via the equate statement... and also tried it with 
 and 0.   All of the gory code was not included.
. In U2, it is not clear to me what is meant by "Normalizing".
--Bill
-----Original Message-----
rom: [email protected] 
[mailto:[email protected]] 
n Behalf Of Wjhonson
ent: Friday, July 20, 2012 5:30 PM
o: [email protected]
ubject: Re: [U2] Comparing Two Dyamic Arrays

) You have not set the values of true and false correctly
) You are comparing numeric strings without normalizing them

-----Original Message-----
rom: Bill Brutzman <[email protected]>
o: U2 Users List <[email protected]>
ent: Fri, Jul 20, 2012 1:49 pm
ubject: [U2] Comparing Two Dyamic Arrays

egin case
        Case array1 = array2  ;  sameThing = true
    Case 1                                ;  sameThing = false
d   case
hen I tried to use an equals sign... I did not get the right answer.
hile the COMPARE function works ok... and I presume that it is a compiler 
ing...
t is not clear to me why the equals sign has been disempowered.
nsights would be appreciated.
-Bill
_____________________________________________
-Users mailing list
[email protected]
tp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to