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

Home » Public Forums » archive » Two new tools
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: Two new tools [message #11427 is a reply to message #11291] Sun, 05 April 1998 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
<HTML>
Martin Schultz wrote:
<BLOCKQUOTE TYPE=CITE>Howdy,

<P>&nbsp;&nbsp;&nbsp; today I finally got around improving my concept of
displaying help
<BR>information on self-written (and library!) routines. Please find
<BR>attached
<BR>&nbsp;&nbsp;&nbsp;&nbsp; function routine_name.pro - which returns
the name of the caller
<BR>routine
<BR>&nbsp;</BLOCKQUOTE>
Hi Martin,

<P>this function is in Ray Sterners lib too and will be called with whocalledme,dir,file.

<P>IDL> whocalledme,/help
<BR>&nbsp;Returns to calling routine its parent's directory and name.
<BR>&nbsp;whocalledme, dir, file
<BR>&nbsp;&nbsp; dir = Source directory of parent routine.&nbsp;&nbsp;
out
<BR>&nbsp;&nbsp; file = name of parent routine.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;
out
<BR>&nbsp;Keywords:
<BR>&nbsp;&nbsp; LINE=n&nbsp; Line number just after parent's last call.
<BR>&nbsp;Notes: It can be useful for a routine to know
<BR>&nbsp;&nbsp; what routine called it.
<BR>&nbsp;&nbsp; See also: whoami.

<P>IDL> whoami,/help
<BR>&nbsp;Returns to the calling routine its directory and name.
<BR>&nbsp;whoami, dir, file
<BR>&nbsp;&nbsp; dir = Source directory of calling routine.&nbsp;&nbsp;
out
<BR>&nbsp;&nbsp; file = name of calling routine.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;
out
<BR>&nbsp;Notes: It can be useful for a routine to know
<BR>&nbsp;&nbsp; what directory it is located in.&nbsp; This allows
<BR>&nbsp;&nbsp; it to reference auxiliary files in the same
<BR>&nbsp;&nbsp; directory without needed any special environmental
<BR>&nbsp;&nbsp; variables defined.&nbsp; The file name returned here is
<BR>&nbsp;&nbsp; less important since it could always be hardwired
<BR>&nbsp;&nbsp; into the calling routine itself, but this technique
<BR>&nbsp;&nbsp; allows this to be avoided for more reusable code.

<P>Reimar
<PRE>--&nbsp;
R.Bauer&nbsp;

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de</PRE>
&nbsp;</HTML>
[Message index]
 
Read Message
Read Message
Previous Topic: Object graphics keywords
Next Topic: Problems with EXTRACT_SLICE

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

Current Time: Fri Oct 10 04:07:07 PDT 2025

Total time taken to generate the page: 0.32064 seconds