Utilities/
routine_name.pro
Give us the name of the routine (procedure or function) where we are.
routine_name
Utilities
result = routine_name([pilingnum])
Return value
a string giving either the full name of the routine (with the path) or
'$MAIN$'
Parameters
pilingnum
in
optional
A whole number which give us how many level we have to reascend
in the piling up of routines and subroutines to find the looked for routine.
Examples
IDL> print, routine_name()
/usr1/com/smasson/IDL_RD/UTILITAIRE/report.pro
IDL> print, routine_name(1)
/usr1/com/smasson/IDL_RD/PLOTS/DIVERS/determineminmax.pro
IDL> print, routine_name(2)
/usr1/com/smasson/IDL_RD/PLOTS/DESSINE/plt.pro
IDL> print, routine_name(3)
$MAIN$
IDL> print, routine_name(4)
$MAIN$
Version history
Version
$Id: routine_name.pro 163 2006-08-29 12:59:46Z navarro $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
21/10/1999
Known issues
Restrictions
This function use the keyword OUTPUT in help.pro and it is specified
in the on-line help that the return syntax of this word can change in
function of the version of the code. This version works with IDL 5.2.
Produced by IDLdoc 2.0 on Wed Sep 6 12:28:37 2006.