<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Utilities/

routine_name.pro

Give us the name of the routine (procedure or function) where we are.

toproutine_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 136 2006-07-10 15:20:19Z pinsard $

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 online 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.