This is a function that will identify the name of the procedure or function which calls this function.
Utilities
The program returns a string in uppercase letters identifying the name of the program module containing this function.
Used to a module by name:: IDL> Print, cgWhoAmI() ; Compile and run the following main level program. ;*************************** PRO junker Print, cgWhoAmI() END PRO junk Print, cgWhoAmI() END junk END ;************************** IDL> .go JUNK JUNKER
FANNING SOFTWARE CONSULTING:: David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com
Change History:: Written, 28 January 2011. DWF. Fixed problem intoduced when I converted WhoAmI to cgWhoAmI. 2 Sep 2014. DWF.
Copyright (c) 2011, Fanning Software Consulting, Inc.