<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Stephen,<BR>
I tried that initially, but it didnt work.<BR>
I even tried say newvar and to see if it recognized newvar but it just echoed "newvar" at the prompt.<BR>
can you/anyone else test and confirm this?<BR>
here are the exact lines from the script Im using...<BR>
<BR>
'define newvar=aave(myvar,x='x1',x='x2',y='y1',y='y2')'<BR>
'set defval ht 'i' 'j' 'newvar<BR>* 'q define'<BR>* tmpvar=sublin(result,2)<BR>* tmpvar=subwrd(tmpvar,2)<BR>* 'set defval myvar 'i' 'j' 'tmpvar<BR> <BR>again, the above didnt work, 'set defval' throws an error because 'newvar' is empty/undefined.<BR>
P.Romero<BR>
<HR id=stopSpelling>
<BR>
Date: Thu, 8 Jan 2009 00:13:28 -0600<BR>From: smcmillan@PLANALYTICS.COM<BR>Subject: Re: scripting question about 'define' and 'set defval'<BR>To: GRADSUSR@LIST.CINECA.IT<BR><BR><BR><FONT face=sans-serif size=2>Pablo,</FONT><BR><FONT face=sans-serif size=2>I believe you should be able to do your 'set defval ht 'i' 'j' 'newvar immediately following the 'define newvar...' line.</FONT><BR><FONT face=sans-serif size=2>Stephen</FONT><BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>Pablo Romero <romero619@HOTMAIL.COM></B></FONT><BR><FONT face=sans-serif size=1>Sent by: GRADSUSR@LIST.CINECA.IT</FONT>
<FONT face=sans-serif size=1>01/07/2009 05:30 PM</FONT>
<TABLE border=1>
<TBODY>
<TR vAlign=top>
<TD bgColor=white>
<DIV align=center><FONT face=sans-serif size=1>Please respond to<BR>GRADSUSR@LIST.CINECA.IT</FONT></DIV></TR></TBODY></TABLE><BR><BR>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD><FONT face=sans-serif size=1>GRADSUSR@LIST.CINECA.IT</FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
<TD><FONT face=sans-serif size=1>scripting question about 'define' and 'set defval'</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><FONT size=3>I think Im missing something obvious, but I cant feed a variable created using 'define' into the 'set defval' function...</FONT><BR><FONT size=3>right now, Im using 'query define' in order to retrieve the value, but Im hoping there's a better, easier, more reliable way...</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>'define newvar=aave(myvar,x='x1',x='x2',y='y1',y='y2')'</FONT><BR><FONT size=3>'q define'</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>*assuming newvar is the ONLY defined variable, I can do this...</FONT><BR><FONT size=3>'theVal=sublin(result,1)</FONT><BR><FONT size=3>'theVal=subwrd(theVal,2)</FONT><BR><FONT size=3>'set defval ht 'i' 'j' 'theVal</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>is there a simpler way to access my 'newvar' value, without having to 'query define' in order to get it?</FONT><BR><FONT size=3>Please help, thanks...</FONT><BR><FONT size=3>P.Romero</FONT><BR>
<HR>
<BR><FONT size=3>Windows LiveTM: Keep your life in sync. </FONT><A href="http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009"><FONT color=blue size=3><U>Check it out.</U></FONT></A><BR><BR><BR>***************************************************<BR>The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR>***************************************************<BR><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009' target='_new'>Check it out.</a></body>
</html>