WHen you are using a dodefault() there are some rules of thumb you should consider.
When the superclass method has a parameter statement, always pass the parameter to the dodefault(), unless you are fully aware of the results when not passed or are doing this on purpose.
Most methods have a return value, in Fox method by default return .T. when no return value is given in the superclass method.
So for instance, when the superclass method would be:
PROEDURE ExampleMethod
LPARAMETERS tcCode
LOCAL llRetVal
*- Code, bla, bla, bla
RETURN llRetVal
ENDPROC
your subclass method could be:
PROECDURE Examplemethod && within the subclass
LPARAMETERS tcCode
LOCAL llRetVal
llRetVal = DODEFAULT(tcCode)
IF llRetVal
*- The new code, or extra code
ENDIF
RETURN llRetVal
ENDPROC
Most of the time if you do not pass the parameter, this could cause some unpredictable results that if you are not aware of the ommission of passing the parameter, can cost a lot of time tracking down.
HTH,
Weedz (Edward W.F. Veld)
My private project:
Download the CrownBase source code !!