Hi Gavin,
You need to use the scope resolution operator.
::For example:
oFrm = CREATEOBJECT('MyForm')
oFrm.show(1)
DEFINE CLASS MyForm as Form
ADD OBJECT cmdTest as cmdChild
ENDDEFINE
DEFINE CLASS cmdGrandParent as CommandButton
FUNCTION click()
MESSAGEBOX('GrandParent')
ENDFUNC
ENDDEFINE
DEFINE CLASS cmdParent as cmdGrandParent
FUNCTION click()
MESSAGEBOX('Parent')
ENDFUNC
ENDDEFINE
DEFINE CLASS cmdChild as cmdParent
FUNCTION click()
RETURN cmdGrandParent::Click()
ENDFUNC
ENDDEFINE
Cheers,
See you tomorrow night at the User Group?
Andrew
>Hi All,
>
>I have a form (VFP6) that is based on a class and within one of the forms methods I have made some code changes and need to call the DODEFAULT() of the GrandParent class. How can I do this?
>
>Thanks,
>Gavin...
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.