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

Home » Public Forums » archive » Re: determing object type at runtime in IDL
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: determing object type at runtime in IDL [message #36849] Fri, 31 October 2003 08:17 Go to previous message
reger is currently offline  reger
Messages: 2
Registered: October 2003
Junior Member
JD Smith <jdsmith@as.arizona.edu> wrote in message news:<pan.2003.10.30.00.42.47.764280.5089@as.arizona.edu>...
> On Wed, 29 Oct 2003 16:15:08 -0700, David Fanning wrote:
>
>> Rob Eger writes:
>>
>>> Is there a way to determine the type of object something is at runtime?
>>> For example, if an object x is an IDLgrView or IDLgrModel object.
>>> SIZE doesn't help as far as I can tell because it will only tell you
>>> it's an OBJREF.
>>
>> Try this:
>>
>> IDL> Print, Obj_Class(object)
>
> Or, more often what you want:
>
> IDL> print,obj_isa(object,'IDLgrModel')
>
> which searches up the inheritence tree too.
>
> JD


Thanks for the pointers. I think that'll give me what I'm looking for.

Rob.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: about contour
Next Topic: Number of points within a rectangular region

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

Current Time: Sat Oct 11 12:41:01 PDT 2025

Total time taken to generate the page: 0.79865 seconds