Talk About Network



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 > How to test if ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 11306 of 11503
Post > Topic >>

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

by "Dirk Herijgers" <dirk@[EMAIL PROTECTED] > Apr 11, 2008 at 12:53 PM

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() ?

In case MySpecialControl-class was inherit from DateTimePicker, then
this method exist standard in VO 2.8 SP2, but

In case MySpecialControl-class was inherit from MonthCalendar, then
this method does NOT exist standard in VO 2.8 SP1, but maybe this
method will standard exist in VO 2.8 SP2, so...

Can some-one help me ???

Dirk, Belgium

--




 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 Fri Jul 4 16:23:15 CDT 2008.