scripting question about 'define' and 'set defval'

Stephen R McMillan smcmillan at PLANALYTICS.COM
Thu Jan 8 10:37:23 EST 2009


Where 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 to
GRADSUSR 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 -0600
From: smcmillan at PLANALYTICS.COM
Subject: Re: scripting question about 'define' and 'set defval'
To: GRADSUSR at LIST.CINECA.IT


Pablo,
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.IT 01/07/2009 05:30 PM 
Please respond to
GRADSUSR 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.
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090108/0d7f4a79/attachment.html 


More information about the gradsusr mailing list