scripting question about 'define' and 'set defval'

Pablo Romero romero619 at HOTMAIL.COM
Thu Jan 8 10:46:21 EST 2009


sorry, typo...I changed the names in the script during some testing and missed in within the email.
but the problem still exists, I can't find a simple way to just access the defined variable.
here it is again...
 
  'define tmp2=aave(tmp1,x='x1',x='x2',y='y1',y='y2')'  'set defval tmp1 'i' 'j' 'tmp2  say   'set defval tmp1 'i' 'j' 'tmp2
 
the last line prints something like "set defval tmp1 -65 100 tmp2", instead of substituting the value of tmp2.
 
the variable names are tmp1 and tmp2, though its irrelevant as long as theyre consistent (I already checked that they are, in fact, correct, since I can see & access them through 'q define')



Date: Thu, 8 Jan 2009 09:37:23 -0600From: smcmillan at PLANALYTICS.COMSubject: Re: scripting question about 'define' and 'set defval'To: GRADSUSR at LIST.CINECA.ITWhere did the variable 'ht' come from?  Did you previously define it as your field variable?  Stephen Mc



Pablo Romero <romero619 at HOTMAIL.COM>Sent by: GRADSUSR at LIST.CINECA.IT
01/08/2009 09:33 AM




Please respond toGRADSUSR at LIST.CINECA.IT





To
GRADSUSR at LIST.CINECA.IT


cc



Subject
Re: scripting question about 'define' and 'set defval'




Stephen,I tried that initially, but it didnt work.I even tried say newvar and to see if it recognized newvar but it just echoed "newvar" at the prompt.can you/anyone else test and confirm this?here are the exact lines from the script Im using... 'define newvar=aave(myvar,x='x1',x='x2',y='y1',y='y2')''set defval ht 'i' 'j' 'newvar*  'q define'* tmpvar=sublin(result,2)* tmpvar=subwrd(tmpvar,2)* 'set defval myvar 'i' 'j' 'tmpvar again, the above didnt work, 'set defval' throws an error because 'newvar' is empty/undefined.P.Romero

Date: Thu, 8 Jan 2009 00:13:28 -0600From: smcmillan at PLANALYTICS.COMSubject: Re: scripting question about 'define' and 'set defval'To: GRADSUSR at LIST.CINECA.ITPablo,I believe you should be able to do your 'set defval ht 'i' 'j' 'newvar  immediately following the 'define newvar...' line.Stephen



Pablo Romero <romero619 at HOTMAIL.COM>Sent by: GRADSUSR at LIST.CINECA.IT01/07/2009 05:30 PM




Please respond toGRADSUSR at LIST.CINECA.IT





To
GRADSUSR at LIST.CINECA.IT


cc



Subject
scripting question about 'define' and 'set defval'




I think Im missing something obvious, but I cant feed a variable created using 'define' into the 'set defval' function...right now, Im using 'query define' in order to retrieve the value, but Im hoping there's a better, easier, more reliable way... 'define newvar=aave(myvar,x='x1',x='x2',y='y1',y='y2')''q define' *assuming newvar is the ONLY defined variable, I can do this...'theVal=sublin(result,1)'theVal=subwrd(theVal,2)'set defval ht 'i' 'j' 'theVal is there a simpler way to access my 'newvar' value, without having to 'query define' in order to get it?Please help, thanks...P.Romero

Windows LiveTM: Keep your life in sync.  Check it out.***************************************************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.***************************************************

Windows Live™: Keep your life in sync.  Check it out.***************************************************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.***************************************************
_________________________________________________________________
Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090108/9c94a740/attachment.html 


More information about the gradsusr mailing list