Have you tried examining the strings? The equal sign will work if the 2 strings are the same. But they can be equal as dynamic arrays while not equal as strings. For example, on universe:
0001 A="1":@AM:"2" 0002 B="1":@AM:" 2 " 0003 CRT A=B 0004 CRT EQS(A,B) prints: 0 1^1 The 2 dynamic arrays aren't equal as strings, but they are as dynamic arrays, because universe ignores leading/trailing spaces in numeric conversion. Similarly: 0001 A="1":@AM:"2":@VM 0002 B="1":@AM:"2" 0003 CRT A=B 0004 CRT EQS(A,B) print: 0 1^1]1 they are different strings, but eqs() treats empty and missing values as the same. On Jul 20, 2012, at 6:43 PM, Woodward, Bob wrote: > Is it a DIM array or a DYNAMIC array? I would think that a DIM array > would probably be false because it's space is assigned in memory using > initial values of whatever data was in that location. I would expect a > DYNAMIC array to work, though, as it's really just a single location in > memory. No proof but that's what I'd expect, anyway. > > BobW > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Bill Brutzman > Sent: Friday, July 20, 2012 1:23 PM > To: U2 Users List > Subject: [U2] Comparing Two Dyamic Arrays > > Begin case > Case array1 = array2 ; sameThing = true > Case 1 ; sameThing = false > End case > > When I tried to use an equals sign... I did not get the right answer. > > While the COMPARE function works ok... and I presume that it is a > compiler thing... > > It is not clear to me why the equals sign has been disempowered. > > Insights would be appreciated. > > --Bill > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
