>>Hi,
>>
>>I have a method in the base class (e.g. method name BEFORE_PROCESS) that returns .T. or .F.
>>
>>I want the child class of this class to have its own code before calling the parent BEFORE_PROCESS. Therefore, the pseudo code in the child method BEFORE_PROCESS is:
>>
>>
>>nChoice = messagebox("question ...")
>>if nChoice = 7
>> RETURN .F.
>>endif
>>
>>*-- now calling the method of the parent class
>>DODEFAULT()
>>
>>*-- but how to capture the return value in the parent method so that to return from here?
>>
>>
>>
>>TIA.
>
>local llReturn
>
>llReturn = dodefault()
>
>if m.llReturn
> ** All is well, we can proceed
>
>endif
>
>return m.llReturn
Thank you. I thought about doing the same but somehow decided that it was not correct syntax. I should trust my own judgment sometimes :)
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham