AnsweredAssumed Answered

vrf Array deletion

Question asked by han.tran on Aug 13, 2006
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 11 (filtered medium)"><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/><!--[if !mso]><style>st1:*{behavior:url(#default#ieooui) }</style><![endif]--><style><!-- /* Font Definitions */ @font-face     {font-family:Tahoma;     panose-1:2 11 6 4 3 5 4 4 2 4;}@font-face     {font-family:Verdana;     panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal     {margin:0in;     margin-bottom:.0001pt;     font-size:12.0pt;     font-family:"Times New Roman";}a:link, span.MsoHyperlink     {color:blue;     text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed     {color:blue;     text-decoration:underline;}pre     {margin:0in;     margin-bottom:.0001pt;     font-size:10.0pt;     font-family:"Courier New";}tt     {font-family:"Courier New";}p.aolplaintextbody, li.aolplaintextbody, div.aolplaintextbody     {margin:0in;     margin-bottom:.0001pt;     background:white;     font-size:9.0pt;     font-family:Tahoma;     color:black;}p.aolinlineattachment, li.aolinlineattachment, div.aolinlineattachment     {margin:7.5pt;     font-size:12.0pt;     font-family:"Times New Roman";}p.aolattachmentheader, li.aolattachmentheader, div.aolattachmentheader     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     background:#F9F9F9;     border:none;     padding:0in;     font-size:12.0pt;     font-family:"Times New Roman";}p.title, li.title, div.title     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     font-size:12.0pt;     font-family:"Times New Roman";}p.title1, li.title1, div.title1     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     background:#E9EAEB;     font-size:8.5pt;     font-family:Tahoma;     color:#666666;     font-weight:bold;}p.fieldlabel, li.fieldlabel, div.fieldlabel     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     font-size:12.0pt;     font-family:"Times New Roman";}p.title2, li.title2, div.title2     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     background:#E9EAEB;     font-size:8.5pt;     font-family:Tahoma;     color:#666666;     font-weight:bold;}p.fieldlabel1, li.fieldlabel1, div.fieldlabel1     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     font-size:8.5pt;     font-family:Tahoma;     color:#666666;     font-weight:bold;}p.fieldvalue, li.fieldvalue, div.fieldvalue     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     font-size:12.0pt;     font-family:"Times New Roman";}p.title3, li.title3, div.title3     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     background:#E9EAEB;     font-size:8.5pt;     font-family:Tahoma;     color:#666666;     font-weight:bold;}p.fieldlabel2, li.fieldlabel2, div.fieldlabel2     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     font-size:8.5pt;     font-family:Tahoma;     color:#666666;     font-weight:bold;}p.fieldvalue1, li.fieldvalue1, div.fieldvalue1     {mso-margin-top-alt:auto;     margin-right:0in;     mso-margin-bottom-alt:auto;     margin-left:0in;     font-size:8.5pt;     font-family:Tahoma;     color:#333333;}span.EmailStyle31     {mso-style-type:personal-reply;     font-family:Arial;     color:navy;}@page Section1     {size:8.5in 11.0in;     margin:1.0in 1.25in 1.0in 1.25in;}div.Section1     {page:Section1;}--></style></head><body lang=EN-US link=blue vlink=blue><div class=Section1><div><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Use the max and min array indexes functionto find your index locations, then use the indexes to find max and min values.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Han<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonNamew:st="on">jbizkitawg@netscape.net</st1:PersonName> [mailto:<st1:PersonNamew:st="on">jbizkitawg@netscape.net</st1:PersonName>]
<b><span style='font-weight:bold'>Sent:</span></b> Monday, August 14, 200612:25 PM
<b><span style='font-weight:bold'>To:</span></b> VRF
<b><span style='font-weight:bold'>Subject:</span></b> Re: [vrf] Array deletion</span></font><o:p></o:p></p></div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p><div><div><div><p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>I try to do it this way and sometimes I get anarror..."A[a:b] requires a|=b".  I think this is whenthe Nth element that I am trying to remove is zero.  Is there aneasier way to do this?  All I am trying to do is strip out the max and minvalues in a 1D array.<o:p></o:p></span></font></p></div><div><p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></font></p></div><div><p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>Thanks <o:p></o:p></span></font></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Verdana><spanstyle='font-size:10.0pt;font-family:Verdana'> 
-----Original Message-----
From: kai-chong_koay@agilent.com
To: <st1:PersonName w:st="on">jbizkitawg@netscape.net</st1:PersonName>;vrf@agilent.com
Sent: Fri, 11 Aug 2006 10:17:06 +0800
Subject: RE: [vrf] Array deletion<o:p></o:p></span></font></p><div id="AOLMsgPart_0_bd056880-feb7-43d2-9da1-e8f365b4bf7d"><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>To delete N-thelement in array: <o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>    Array =Concat(Array[0:N-1],Array[N+1:*])<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>To delete thelast element in array:<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>    Array =Array[0:TotSize(Array)-2]<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>-----OriginalMessage-----<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>From: <ahref="mailto:jbizkitawg%40netscape.net">jbizkitawg@netscape.net</a> [<ahref="mailto:jbizkitawg%40netscape.net">mailto:jbizkitawg@netscape.net</a>] <o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>Sent: Friday,August 11, 2006 9:42 AM<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>To: VRF<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>Subject: [vrf]Array deletion<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>   Is there acommand to delete a data point in an array or the last <o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>value in acollector?<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>   <o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'><o:p> </o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>---<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>You are currentlysubscribed to vrf as: <a href="mailto:kai-chong_koay%40agilent.com">kai-chong_koay@agilent.com</a><o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>To subscribeplease send an email to: "<ahref="mailto:vrf-request%40lists.it.agilent.com">vrf-request@lists.it.agilent.com</a>"with <o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>the wordsubscribe in the message body.<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>To unsubscribesend a blank email to "<a href="mailto:leave-vrf%40it.lists.it.agilent.com">leave-vrf@it.lists.it.agilent.com</a>".<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>To send messagesto this mailing list,  email "<a href="mailto:vrf%40agilent.com">vrf@agilent.com</a>". <o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>If you need helpwith the mailing list send a message to<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>"<ahref="mailto:owner-vrf%40it.lists.it.agilent.com">owner-vrf@it.lists.it.agilent.com</a>".<o:p></o:p></span></font></tt></p><p class=MsoNormal style='background:white'><tt><font size=2 color=blackface="Courier New"><span style='font-size:10.0pt;color:black'>Search the"unofficial vrf archive" at "<ahref="http://www.oswegosw.com/vrf_archive/" target="_blank">www.oswegosw.com/vrf_archive/</a>".<o:p></o:p></span></font></tt></p></div></div></div><!-- end of AOLMsgPart_0_bd056880-feb7-43d2-9da1-e8f365b4bf7d --><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
---
You are currently subscribed to vrf as: Han.Tran@wdc.com
To subscribe please send an email to: "<st1:PersonName w:st="on">vrf-request@lists.it.agilent.com</st1:PersonName>"with the word subscribe in the message body.
To unsubscribe send a blank email to"leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"<st1:PersonName w:st="on">owner-vrf@it.lists.it.agilent.com</st1:PersonName>".
Search the "unofficial vrf archive" at"www.oswegosw.com/vrf_archive/". <o:p></o:p></span></font></p></div><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.<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<BR>"owner-vrf@it.lists.it.agilent.com".<BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".</BODY></html>  

Outcomes