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

Home » Public Forums » archive » Re: How to know if an object has a certain method ?
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: How to know if an object has a certain method ? [message #65455 is a reply to message #65452] Tue, 03 March 2009 11:40 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
llo writes:

> I've an object AA and I want to know if this object has a method named
> METHOD_AA...
>
> I could do something like this:
> if obj_isa(AA,'object_1') then 'the object has the method' $
> else 'the object doesn't has the method'
>
> There is another way to do that ?

http://www.dfanning.com/code_tips/hasmethod.html

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to know if an object has a certain method ?
Next Topic: Problem with labeling contour lines in IDL

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

Current Time: Wed Oct 29 00:26:09 PDT 2025

Total time taken to generate the page: 1.59942 seconds