Subject |
Re: INHERITANCE |
From |
Mervyn Bick <invalid@invalid.invalid> |
Date |
Wed, 19 Jul 2017 10:13:56 +0200 |
Newsgroups |
dbase.getting-started |
On 2017-07-19 8:53 AM, Mustansir Ghor wrote:
> Dear Andy
>
> Below is my program example of tab. It works as you indicated. There is one statement with comment //. If I remove the comment slashes and use with super class it does not work. If I were to use super class would the statement be.
.......
> function MYTABBOX1_onSelChange()
>
> // super::onSelChange()
> mytabbox::mytabbox_onselchange()
> this.parent.text1.text=this.datasource
>
> return
>
>
> endclass
>
> class MYTABBOX(parentObj) of TABBOX(parentObj) custom
> with (this)
> onSelChange = class::MYTABBOX_ONSELCHANGE
> onOpen = class::MYTABBOX_ONOPEN
> id = 110
> height = 22.0
> left = 0.0
> top = 350.0
> width = 465.0
> metric = 6
> colorHighLight = "WindowText/0x80ffff"
> dataSource = 'ARRAY {"Individual Record","Find Record"}'
> endwith
>
> function MYTABBOX_onSelChange()
> form.pageNo := this.curSel
> return
The event handler in MyTabBox.cc is named MYTABBOX_onSelChange() not
onSelChange(). The line that is commented out needs to be
super::mytabbox_onSelChange() to make it work.
Mervyn.
|
|