AnsweredAssumed Answered

vrf array input

Question asked by VRFuser on Nov 22, 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"><META content="MSHTML 6.00.2800.1458" name=GENERATOR><STYLE></STYLE></HEAD><BODY bgColor=#ffffff><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: 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