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

Home » Public Forums » archive » Re: current directory
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: current directory [message #34275] Mon, 03 March 2003 09:16 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dear Timm,

good idea in combination whith file_path_name_ext we can save one line.
But if we like to use it in a function then where did the name 'test'
comes from?

regards

Reimar



Timm Weitkamp wrote:

> Dear Ulf and the others,
>
> Maybe I'm missing something, but if the problem is finding the file path
> of a given compiled routine, why not use ROUTINE_INFO with the /SOURCE
> keyword (and, if appropriate, /FUNCTION)? Like this:
>
> IDL> .run test
> IDL> help, /structure, routine_info('test',/source)
> ** Structure <82329dc>, 2 tags, length=16, refs=1:
> NAME STRING 'TEST'
> PATH STRING '/users/weitkamp/idl/test.pro'
>
> Avoids parsing HELP's output (which may even change in future versions of
> IDL). But maybe that takes away all the fun?
>
> And then, admittedly, although ROUTINE_INFO can do a lot of things, one
> thing I think it doesn't do is find out the name of the current routine
> (as HELP, /CALLS does).
>
> Cheers,
> Timm
>

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: dynamically naming variables
Next Topic: dlm returning ptr array and string array

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

Current Time: Thu Oct 09 22:48:51 PDT 2025

Total time taken to generate the page: 1.67940 seconds