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

Home » Public Forums » archive » Link to a variable page into an ION code
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
Link to a variable page into an ION code [message #41654] Fri, 12 November 2004 05:42
sandrokan is currently offline  sandrokan
Messages: 20
Registered: September 2004
Junior Member
Hello everybody,
I've got this problem. I would like to insert a link inside one ION page.
This link points to a page, whose name depends on
some inputs. After the declaration...

<VARIABLE_DECL NAME="date" VALUE="$diy+$dim+$did+$tih+$tim+$tis"
TYPE="STR" PERSIST="TRUE" />
<VARIABLE_DECL NAME="date_removed" VALUE="" TYPE="STR"
PERSIST="TRUE" />



.. I've added the following code:

<ION_DATA_OUT>
<IDL>

UTC1 = [$diy, $dim, $did, $tih, $tim, $tis]
UTC2 = [$dey, $dem, $ded, $teh, $tem, $tes]

im = data_seq(UTC1,UTC2)
si=size(im)

date_removed = strcompress('$date',/remove_all)
<ION_EVALUATE EXPR="$date = 'date'" />

print, date_removed

<a href="/recent/npi_nm/$data"/>DOWNLOAD_DATA</a>

</IDL>
</ION_DATA_OUT>


This does not work. In fact, $date variable is full of whitespaces, so the
link is not correct. If I try to use $date_removed, then I get
an error because date_removed is defined, $date_removed is not.

Is it possible to pass the value of date_removed to $date_removed? Maybe
using ION_EVALUATE tag?
Any other way to solve this problem?

Thank you very much.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cursor problem
Next Topic: ION $variables

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

Current Time: Wed Oct 08 19:51:48 PDT 2025

Total time taken to generate the page: 0.00451 seconds