comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: StrMid in ION/IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: StrMid in ION/IDL [message #30980] Fri, 31 May 2002 09:33
Diann Mills is currently offline  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 Go to previous message
Rick Towler is currently offline  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
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Parameters for Dummies
Next Topic: IDL 5.5 "% Temporary variables" messages

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:52:56 PDT 2025

Total time taken to generate the page: 0.00804 seconds