|
Re: how can I get the name of a variable as a string? [message #73529 is a reply to message #73526] |
Fri, 12 November 2010 12:49  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 11/12/10 1:46 PM, F�LDY Lajos wrote:
>
> On Fri, 12 Nov 2010, fgg wrote:
>
>> Hi,
>>
>> How can I get the name of a variable as a string? I found the
>> IDL_VarName() function in the IDL help, but I don't really understand
>> how to use it.
>>
>> char *IDL_VarName(IDL_VPTR v) ??
>>
>> Thanks
>
> name=SCOPE_VARNAME(var)
>
> regards,
> Lajos
Yes, the IDL_VarName routine you saw is part of IDL's internal API
(i.e., if you are interfacing with IDL in C).
Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
|
|
|
Re: how can I get the name of a variable as a string? [message #73530 is a reply to message #73529] |
Fri, 12 November 2010 12:46  |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Fri, 12 Nov 2010, fgg wrote:
> Hi,
>
> How can I get the name of a variable as a string? I found the
> IDL_VarName() function in the IDL help, but I don't really understand
> how to use it.
>
> char *IDL_VarName(IDL_VPTR v) ??
>
> Thanks
name=SCOPE_VARNAME(var)
regards,
Lajos
|
|
|