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

Home » Public Forums » archive » Re: Obtaining variable names as strings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Obtaining variable names as strings [message #25049] Mon, 14 May 2001 08:38 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Martin Schultz wrote:
>
> Ian Dean <ian.d.dean@baesystems.com> writes:
>
> 1.) please don't use html mail in future posts.
>
> 2.) i'm still not entirely sure what you want to do here, but from
> your description it sounds as if there are several things done in
> an unnecessarily complex way? Even if the include file is sacrosanct
> as you say (BTW: I would never accept such a statement), you could
> still treat it as a normal ASCII file and read in the variable definitions
> e.g. into structures like { varname:"Joe", value:"200" } or into
> two arrays: strarr() and values(). This would make searching and
> matching much easier.
>
> 3.) but if you really need to include the include file as such,
> Reimar Bauer can probably tell you how to use the undocumented
> features of routine_name() to achieve what you want.
>
> Martin
>


Hi, Ian

in the past I have used some variables in the same way I think as
you like to do it now.

The following function founds defined variables without structures.
They are removed by some statements in the routine.

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/variab.tar.gz

This function uses the internal routine routine_info. This is an
undocumented routine and it could
be that it will be removed in future releases.
Many routines e.g. Craigs restore or the read_ascii etc. are using some
features of this
routine.

I prefer myself reading variabels in structures mentioned by Martin see
point 2.



regards
Reimar




--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
=============================================
a IDL library at ForschungsZentrum J�lich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
[Message index]
 
Read Message
Read Message
Previous Topic: !version.arch
Next Topic: Displaying large volumes

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

Current Time: Fri Oct 10 20:19:37 PDT 2025

Total time taken to generate the page: 0.08080 seconds