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

Home » Public Forums » archive » Re: how can I get the name of a variable as a string?
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
Re: how can I get the name of a variable as a string? [message #73526] Fri, 12 November 2010 13:23
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Thanks, guys!
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 Go to previous message
Michael Galloy is currently offline  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 Go to previous message
Foldy Lajos is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Alternative to cell_fill?
Next Topic: script for batch compiling

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

Current Time: Wed Oct 08 15:11:20 PDT 2025

Total time taken to generate the page: 0.00491 seconds