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 #34278 is a reply to message #34277] Mon, 03 March 2003 09:00 Go to previous messageGo to previous message
Timm Weitkamp is currently offline  Timm Weitkamp
Messages: 66
Registered: August 2002
Member
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

--
Timm Weitkamp <http://people.web.psi.ch/weitkamp>
[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: Fri Oct 10 17:47:57 PDT 2025

Total time taken to generate the page: 1.27304 seconds