AnsweredAssumed Answered

vrf array input - enter the triadic!

Question asked by WDrago on Nov 23, 2004
Latest reply on Nov 23, 2004 by reiner.schlieker
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META content="MSHTML 6.00.2800.1476" name=GENERATOR><STYLE></STYLE></HEAD><BODY bgColor=#ffffff><DIV><SPAN class=103120823-23112004><FONT face=Verdana color=#000080>I remember APL!!! That was such a great language. I did a lot of work in APL. I miss it.....</FONT></SPAN></DIV><DIV><SPAN class=103120823-23112004><FONT face=Verdana color=#000080></FONT></SPAN> </DIV><DIV><SPAN class=103120823-23112004><FONT face=Verdana color=#000080>BTW, in case anyone is wondering APL stands for: A Programming Language.</FONT></SPAN></DIV><DIV><SPAN class=103120823-23112004><FONT face=Verdana color=#000080></FONT></SPAN> </DIV><DIV><SPAN class=103120823-23112004><FONT face=Verdana color=#000080>-Bill</FONT></SPAN></DIV><BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid">  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma   size=2>-----Original Message-----<BR><B>From:</B> D'SOUZA,MARIO (A-USA,ex1)   [mailto:mario_dsouza@agilent.com]<BR><B>Sent:</B> Tuesday, November 23, 2004   6:05 PM<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] RE: array input - enter the   triadic!<BR><BR></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=007505522-23112004>OR   use a conditional (the triadic) operator as follows:</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004>    (yes...this is terribly   crytic...sigh)</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004>     A[0:(totsize(A)-1?(totsize(A)-2):0)]</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004>..........remember APL anyone??</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=007505522-23112004>mario</SPAN></FONT></DIV>  <BLOCKQUOTE>    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma     size=2>-----Original Message-----<BR><B>From:</B> Mike Groves     [mailto:mike@grovesnet.org]<BR><B>Sent:</B> Tuesday, November 23, 2004 5:06     PM<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] RE: array     input<BR><BR></FONT></DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2>OR...</FONT></SPAN></DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2></FONT></SPAN> </DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff size=2>If     you don't know the final size of the array, but you know you want     to knock off the last value, you can use this     formula...</FONT></SPAN></DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2></FONT></SPAN> </DIV>    <DIV><SPAN class=984552421-23112004><FONT     face=Arial>A[0:totSize(A)-2]</FONT></SPAN></DIV>    <DIV><SPAN class=984552421-23112004><FONT     face=Arial></FONT></SPAN> </DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2>Since TotSize(A)-1 points to the last value in an     array, TotSize(A)-2 will point to the <EM>next </EM>to the last     value. The starting array must have at least 2 elements or it     will generate an error.</FONT></SPAN></DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2></FONT></SPAN> </DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2>Cheers,</FONT></SPAN></DIV>    <DIV><SPAN class=984552421-23112004><FONT face=Arial color=#0000ff     size=2>Mike Groves</FONT></SPAN></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> Cem Kayis       [mailto:ckayis@mst.aselsan.com.tr]<BR><B>Sent:</B> Tuesday, November 23,       2004 5:13 AM<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] array       input<BR><BR></FONT></DIV>      <DIV><FONT face=Arial size=2>      <P>Hello,</P>      <P>An array of frequency values are entered through the constant Real64       object in one shot, as shown on the attached file.</P>      <P>The problem is, I want to delete the last value(the fifth index) and       reduce the size of the array to 5 before pressing the OK button during       program execution. I don' t want to use the "object menu-Properties dialog       box"of the Real64 object to modify the size.</P>      <P>Help will be appreciated.</P>      <P>Best regards,</P>      <P><FONT color=#0000ff></FONT> </P>      <P>Cem Kayis</P>      <P>Electronics Engineer</P>      <P>ASELSAN Inc.</FONT></P></DIV></BLOCKQUOTE>---<BR>You are currently     subscribed to vrf as: mario_dsouza@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".   </BLOCKQUOTE>---<BR>You are currently subscribed to vrf as:   William.Drago@L-3com.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". </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