Re: [U2] Comparing Two Dyamic Arrays
Wjhonson <wjhonson <at> aol.com>
2012-07-24 16:42:10 GMT
I think you missed the point that UV (and it's kin) do *not* compare all strings numerically if possible.
It entirely depends on which operation you try to use.
That was the example I gave where all the strings are numerically identical and yet the equal test fails.
From: Charles Stevenson <stevenson.chas <at> gmail.com>
To: U2 Users List <u2-users <at> listserver.u2ug.org>
Sent: Tue, Jul 24, 2012 6:21 am
Subject: Re: [U2] Comparing Two Dyamic Arrays
Mike meant NES( ), not EQS( ).
nd SUMMATION( ), not SUM( ).
UM( ) won't yield a scalar unless all delimiters are the same.
ResultArray = NES(Array1, Array2)
If summation(ResultArray)=0 then samething = true else samething
Which is all well and good . . . as long as you consider "7" = "7.00" =
007" = " 7."
To address Bill Brutzman's original question:
The trouble is that we don't _declare_ variables in UV/UD/MV Basic as
trings or integer, etc.
o UV & its kin makes a best guess.
V (& kin? There may be some variance!) will attempt to compare EQ, NE,
T, & their ilk the two vars numerically, if possible.
hat's what happens with my "seven" example above. All those strings
re treated as equal numerically.
he related multivalue handling functions, .e.g, EQS, do the same, piece