comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: determing object type at runtime in IDL

Re: determing object type at runtime in IDL
type: item
description: 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) 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
creator: David Fanning
date: 2003-10-29T23:15:08-00:00

Re: determing object type at runtime in IDL
type: item
description: 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
creator: JD Smith
date: 2003-10-30T00:42:48-00:00

Re: determing object type at runtime in IDL
type: item
description: 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.
creator: reger
date: 2003-10-31T16:17:35-00:00