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

Home » Public Forums » archive » Anybody know the filename variable?
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
Anybody know the filename variable? [message #8552] Fri, 04 April 1997 00:00 Go to next message
Marc Lessard is currently offline  Marc Lessard
Messages: 1
Registered: April 1997
Junior Member
Hi,

I would like to be able to include the *.pro filename on some plots that
I'm making. When I type 'idl>.run *.pro', it seems that this name must
be stored as a string in some variable. Does anybody know where I can
get to it?

Or, if anybody is going about this a different way, I'd sure like to
hear about it.

Thanks a lot for any help.
Marc
Re: Anybody know the filename variable? [message #8689 is a reply to message #8552] Mon, 07 April 1997 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Marc Lessard wrote:
>
> Hi,
>
> I would like to be able to include the *.pro filename on some plots that
> I'm making. When I type 'idl>.run *.pro', it seems that this name must
> be stored as a string in some variable. Does anybody know where I can
> get to it?
>
> Or, if anybody is going about this a different way, I'd sure like to
> hear about it.
>
> Thanks a lot for any help.
> Marc

Hi

I am using whoami and whocalledme from Ray Sterners library!

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

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


--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@kfa-juelich.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Funny thing - HDF_DFSD_GETINFO
Next Topic: Q:info /recall_commands to string?

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

Current Time: Wed Oct 08 16:01:13 PDT 2025

Total time taken to generate the page: 0.00595 seconds