AnsweredAssumed Answered

vrf quotes comparison - the answer

Question asked by VRFuser on Apr 26, 2004
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><TITLE>Re: [vrf] quotes comparison - the answer</TITLE><META content="MSHTML 5.50.4937.800" name=GENERATOR></HEAD><BODY><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=976550122-26042004>Sorry this is a more than a month late but there's a subtle bug here.  If one string is the same as the other except for a single character appended at the beginning then the results (1 and -1) sum to 0 also.  Try "SCPI" and "aSCPI" in the given example.</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=976550122-26042004></SPAN></FONT> </DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=976550122-26042004>I hope this helps,</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=976550122-26042004>Andy Young</SPAN></FONT></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma   size=2>-----Original Message-----<BR><B>From:</B> Keith Piggott   [mailto:Keith.Piggott@raymarine.com]<BR><B>Sent:</B> Friday, March 19, 2004   7:33 AM<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] Re: quotes comparison - the   answer<BR><BR></FONT></DIV>  <DIV><FONT face=Tahoma size=2><SPAN   class=931142712-19032004>Adam</SPAN></FONT></DIV>  <DIV><FONT face=Tahoma><SPAN class=931142712-19032004></SPAN></FONT><FONT   face=Tahoma><FONT size=2><SPAN class=931142712-19032004><FONT   face="Courier New" color=#0000ff></FONT></SPAN></FONT></FONT> </DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN class=931142712-19032004>If you   reverse the comparison and add the two together, then result 0 = same,   otherwise different.</SPAN></FONT></FONT></DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN   class=931142712-19032004></SPAN></FONT></FONT> </DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN   class=931142712-19032004></SPAN></FONT></FONT><FONT face=Tahoma><FONT   size=2><SPAN class=931142712-19032004><B><FONT face=Arial   size=1>Regards,</FONT></B> </DIV>  <DIV>  <P><FONT face=Arial><B>Keith Piggott</B> <BR><B>Test Engineering</B></FONT>   </P>  <P><FONT face="Arial Black" color=#990033 size=5>Raymarine</FONT> <BR><FONT   face=Arial color=#990033   size=2>                ...world leaders in marine electronics</FONT> <BR><B><FONT face=Arial size=1>Tel   : 44 (0)23 9269 3611 (????)   Fax : 44 (0)23 9269 4642</FONT></B>   <BR><B><FONT face=Arial size=1>e-mail : keith.piggott@raymarine.com   </FONT></B><BR><B><FONT face=Arial size=1>website:<U> </U></FONT><U><FONT   face=Arial color=#0000ff size=1>www.raymarine.com</FONT></U></B> </P>  <P><FONT face=Arial size=1>The information in this e-mail is confidential and   is intended solely for the addressee. Access, copying or re-use of information   contained in it by anyone else is   unauthorised.</FONT></P></SPAN></FONT></FONT></DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN   class=931142712-19032004></SPAN></FONT></FONT> </DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN   class=931142712-19032004></SPAN></FONT></FONT> </DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN   class=931142712-19032004> </SPAN>-----Original   Message-----<BR><B>From:</B> KOHLER,ADAM (A-Scotland,ex1)   [mailto:adam_kohler@agilent.com]<BR><B>Sent:</B> 19 March 2004   12:13<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] Re: quotes comparison - the   answer<BR><BR></DIV></FONT></FONT>  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">    <DIV><SPAN class=863170812-19032004><FONT face="Courier New" color=#0000ff     size=2>I need to find a way of determining if the strings in two arrays are     the same.  But it also needs to test each element individually.      The attached simple example is almost right but it thinks element two is the     same.  I don't want to do this with loops.</FONT></SPAN></DIV>    <DIV><SPAN class=863170812-19032004><FONT face="Courier New" color=#0000ff     size=2></FONT></SPAN> </DIV>    <DIV><SPAN class=863170812-19032004><FONT face="Courier New" color=#0000ff     size=2>Anyone any ideas?</FONT></SPAN></DIV>    <DIV><SPAN class=863170812-19032004>    <P><FONT size=2>Adam Kohler<BR>Software Test<BR>EPSG<BR>Agilent     Technologies<BR>Scotland<BR><BR>tel net 313 5327<BR>t +44 131 335 7327<BR>e     adam_kohler@agilent.com </FONT></P></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>  

Outcomes