Re: converting a string to an IDL command [message #62383 is a reply to message #62381] |
Mon, 08 September 2008 12:13   |
astroboy2k
Messages: 34 Registered: July 2007
|
Member |
|
|
Actually, I have a related question, for which if it's obvious I
apologize in advance.
Not sure how to put this precisely, but....
Let's say I have an array called "happydays".
I'd like to make a function that would take the string 'happydays',
and say, return the min and max of the array with that name:
out=some_function('happydays')
where out is the string:
'The max and min of HAPPYDAYS is 0 and 15"
Just as well, would be something like:
out=some_function(happydays)
and out is the same string as above.
In other words, I guess what I'm asking is, is there a way to find
the original name of a variable that was passed to a sub-program or a
function....
Thanks in advance,
Mark
|
|
|