Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper Visual-Objects > Re: How to test...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 11306 of 11795
Post > Topic >>

Re: How to test if a method exist in a super class ???

by Malcolm Gray <malcolm-news2006@[EMAIL PROTECTED] > Apr 11, 2008 at 02:07 PM

Dirk Herijgers wrote:
> 
> Hi All,
> 
> I have found troubles to find out of a method exist in a parent class.
> 
> Let me explain:
> 
> In the SDK, I found following:
> 
> Method Controlnotify(...) Class Window
> 
> 	...
> 	OTHERWISE
> 		IF IsMethod(oControl, #ParentNodify)
> 			... := Send(oControl, #ParentNofity, ...)
> 		ENDIF
> 	ENDCASE
> 	...
> 
> So Now, I can write a Method ParentNotify(...) on a Control: f.e.
> 
> Class MySpecialControl INHERIT DateTimePicker or MonthCalendar
> 
> Method ParentNotify(...) Class MySpecialControl
> 
> 	... Here, I can write my own code
> 
> 	IF IsMethod(SUPER, #ParentNodify)		// Here is the problem!!
> 		... := Send(SUPER, #ParentNofity, ...)
> 	ENDIF
> 
> How can I see of the super-class has a Method named ParentNotify() ?

if you know the class then ismethodclass and sendclass are worth 
considering.
 




 4 Posts in Topic:
How to test if a method exist in a super class ???
"Dirk Herijgers"  2008-04-11 12:53:37 
Re: How to test if a method exist in a super class ???
Malcolm Gray <malcolm-  2008-04-11 14:07:30 
Re: How to test if a method exist in a super class ???
"Dirk Herijgers"  2008-04-11 15:54:18 
Re: How to test if a method exist in a super class ???
steve emmett <steven_e  2008-04-12 02:12:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 5:45:52 CST 2008.