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

Home » Public Forums » archive » IDL objects and names
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: IDL objects and names [message #34065 is a reply to message #33970] Wed, 12 February 2003 07:16 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sebastian (s@visita2.die.upm.es) writes:

> Now I am of course a little bit lazy and don't want to write a PrintName
> procedure for each object type I am using.

Oh, well then, Sebastian, here is a generic PrintName
procedure that works with *all* IDL-supplied objects
that can have a name:

PRO PrintName, object
object -> GetProperty, Name=theName
Print, theName
END

I'll leave it as an exercise for the reader to figure out
what to do if the object *doesn't* have a name field. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: missing a dimension in IDLgrVolume
Next Topic: Re: Questions about using CATCH

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

Current Time: Wed Oct 08 19:24:37 PDT 2025

Total time taken to generate the page: 0.10696 seconds