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

Home » Public Forums » archive » Re: Function to return the current procedure/function
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: Function to return the current procedure/function [message #67925 is a reply to message #67922] Sat, 05 September 2009 06:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
maurya writes:

> Is there any function to return the current procedure/function name
> only not all?
>
> There is one function "ROUTINE_INFO" which provide information about
> all currently-compiled procedures and functions. But, I want to get
> the name of the procedure/function using a function (say Routine_Name)
> by calling in the same routine. e.g.
>
> Pro test_plot
>
> plot,findgen(200)
> ;
>
> print, Routine_Name()
>
> end
>
> The print function should return 'test_plot'.

ProgramRootDir does this:

http://www.dfanning.com/programs/programrootdir.pro

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Readu, Writeu Causing Segmentation Fault
Next Topic: Re: Help, no improvement in FFT speed on a multiprocessor system

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

Current Time: Wed Oct 08 19:32:39 PDT 2025

Total time taken to generate the page: 0.00432 seconds