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

Home » Public Forums » archive » Re: Discover the name (at calling level) of passed parameter
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: Discover the name (at calling level) of passed parameter [message #34001 is a reply to message #33996] Tue, 11 February 2003 07:00 Go to previous messageGo to previous message
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
Brilliant!
Thanks, David and Craig.
- Kristian

; final example code:
pro test_par_name, p
name = Routine_Names(p, Arg_Name=(-1))
print ,helpform(name[0],p)
print ,'The name of the passed parameter was ',name[0],' and its value
is ',p
end

David Fanning wrote:
> Alright, here it is. But you didn't hear it from me. :-(
>
> pro test_par_name, p
> help,p
> name = Routine_Names(p, Arg_Name=(-1))
> print ,'Name of passed parameter was ',name,' and its value is',p
> end
>
> You can find more information here:
>
> http://www.dfanning.com/tips/access_main_vars.html

> (Kristian.Kjaer@Risoe.DK) writes:
>> I sometimes find myself wanting to know the name of a passed parameter:
>> At the called procedure level I need to know the name that the parameter
>> had at the calling level.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: find contoure
Next Topic: Change to exclusive buttons in 5.6?

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

Current Time: Fri Oct 10 15:10:23 PDT 2025

Total time taken to generate the page: 0.00967 seconds