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

Home » Public Forums » archive » Re: How do I print the procedure name?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How do I print the procedure name? [message #6188] Mon, 29 April 1996 00:00
David.Steele is currently offline  David.Steele
Messages: 8
Registered: April 1996
Junior Member
In article <3184E8C8.3292@pha.jhu.edu>, sahnow@pha.jhu.edu says...
>
> Does anyone know of a way to extract the name
> of the currently executing procedure or function? I
> want to print the name of the procedure that's running
> along with the results of the calculation that's being
> done. That way I'll have a record of how the output was
> generated.
> I'm using v4.0 on a Unix machine.
>
> -Dave

Hi, Dave. The MESSAGE procedure should work. It is usually used for
outputting error messages, but with the /INFORMATIONAL keyword set it can be
used to print any text message you wish. See p. 1-579 of the IDL Reference
Guide.

Dave
--
------------------------------------------------------------ ------------
David P. Steele Ph: (306) 966-6447
ISAS, University of Saskatchewan Fax: (306) 966-6400
116 Science Place David.Steele@usask.ca
Saskatoon SK S7N 5E2 CANSAS::STEELE
Re: How do I print the procedure name? [message #6189 is a reply to message #6188] Mon, 29 April 1996 00:00 Go to previous message
eparvier is currently offline  eparvier
Messages: 4
Registered: October 1991
Junior Member
In article <3184E8C8.3292@pha.jhu.edu>,
David Sahnow <sahnow@pha.jhu.edu> wrote:
> Does anyone know of a way to extract the name
> of the currently executing procedure or function? I
> want to print the name of the procedure that's running
> along with the results of the calculation that's being
> done. That way I'll have a record of how the output was
> generated.
> I'm using v4.0 on a Unix machine.
>
> -Dave

The /CALLS keyword on the HELP procedure will list the stack of
called procedures. The $MAIN$ program name will be in the stack.
Try: HELP,CALLS=STACK
Then: PRINT,STACK

Frank
------------------------------------------------------------ --------
Frank Eparvier, Research Associate Office: (303)497-7394
NOAA Space Environment Center Fax: (303)497-3645
University of Colorado - CIRES
E-mail: eparvier@colorado.edu
WWW: http://stripe.colorado.edu/~eparvier/Home.html
------------------------------------------------------------ --------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Colour buttons in an IDL widget...how?
Next Topic: How do I print the procedure name?

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

Current Time: Wed Oct 08 19:14:01 PDT 2025

Total time taken to generate the page: 0.00591 seconds