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

Home » Public Forums » archive » Re: Where is the right place to define new structs?
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: Where is the right place to define new structs? [message #26506 is a reply to message #26499] Wed, 05 September 2001 03:04 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
>
> IDL searches routines along its search path but it looks first
> in the path were idl is in.
>
> cd,current=current
> print,current
>
> You can define this path by idlde preferences path or startup.
>
> We prefer the startup method.
> Because it is necessary if you have a library and many users
> all of them should have the same order of pathes.
>
> You can define a function like
>
> function my_func
>
> struct={a:1}
>
> return,struct
> end
>
> If this is saved in the search path it is loaded
>
> by x=my_funct()
>
> If you like named structure you can define them in the startup file
> too.
>
> Then you only have to call them by x={name of structure}
>
> regards
>
> Reimar
>
> --


The online help says:

"
Select Startup File


Click this button to specify the name of an IDL batch file to be
executed automatically each time IDL is run. The startup file is
displayed below.

Note - Startup files are executed one statement at a time. It is not
possible to define program modules, (procedures, functions, or
main-level programs) in the startup file.

"


We are using one startup file for all of our platforms.

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 Juelich
> http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
>
> http://www.fz-juelich.de/zb/text/publikation/juel3786.html
> ============================================================ ======
>
> read something about linux / windows
> http://www.suse.de/de/news/hotnews/MS.html

--
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 Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Display clashes under Red Hat Linux 7.1/IDL 5.2
Next Topic: Re: color bitmap button labels

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

Current Time: Sat Oct 11 16:57:05 PDT 2025

Total time taken to generate the page: 2.51496 seconds