Re: StrMid in ION/IDL [message #30980] |
Fri, 31 May 2002 09:33 |
Diann Mills
Messages: 3 Registered: April 2001
|
Junior Member |
|
|
Thanks, Rick. It was the single quotes that I had as double quotes that got
me! D
Rick Towler wrote:
> The joys of ION....
>
> I apologize for the lazy man's response (I don't have the time to actually
> play with this in ion_script) but are you sure the string you are passing to
> STRMID is correct? Can you "print" it from within the <ION_DATA_OUT> tag?
> Is your string variable enclosed in "'"'s?
>
> <ION_SCRIPT>
> <VARIABLES>
> <VARIABLE_DECL NAME="test" TYPE="STR" VALUE="$Form.test"/>
> <VARIABLES>
>
> <ION_BODY>
> <ION_DATA_OUT>
> <IDL>
>
> print, STRMID('$test',0,3)
>
> </IDL>
> </ION_DATA_OUT>
> </ION_BODY>
> <ION_SCRIPT>
>
> -Rick
>
> "Diann Mills" <dmills@lanl.gov> wrote in message
> news:3CF63363.C3F8ED17@lanl.gov...
>> I can use STRMID in IDL with no problem, but when I use it in ION <IDL>
>> </IDL>, I can't make it work. What is the difference when using it in
>> ION? Thanks, Dee
>>
|
|
|
Re: StrMid in ION/IDL [message #30988 is a reply to message #30980] |
Thu, 30 May 2002 17:26  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
The joys of ION....
I apologize for the lazy man's response (I don't have the time to actually
play with this in ion_script) but are you sure the string you are passing to
STRMID is correct? Can you "print" it from within the <ION_DATA_OUT> tag?
Is your string variable enclosed in "'"'s?
<ION_SCRIPT>
<VARIABLES>
<VARIABLE_DECL NAME="test" TYPE="STR" VALUE="$Form.test"/>
<VARIABLES>
<ION_BODY>
<ION_DATA_OUT>
<IDL>
print, STRMID('$test',0,3)
</IDL>
</ION_DATA_OUT>
</ION_BODY>
<ION_SCRIPT>
-Rick
"Diann Mills" <dmills@lanl.gov> wrote in message
news:3CF63363.C3F8ED17@lanl.gov...
> I can use STRMID in IDL with no problem, but when I use it in ION <IDL>
> </IDL>, I can't make it work. What is the difference when using it in
> ION? Thanks, Dee
>
|
|
|