Re: NEWERA - beforerow -- supertable class
Posted in 1997
In article <33d60565.382052@news.starnetinc.com>, Bob Leurck <bobl@conceptsdyn.com> writes > >You are using the AFCL. >Please locate doBeforeRow() in uNavSuperTable. >This function updates the numbers displayed in the status area. >In general, you should add an event to override (or supplant) >functionality. For example; MyReallyBeforeRow event, >theCurrentBeforeRowEvent, then MyAfterBeforeRowEvent >would allow you to perform processes before ,and after the >current beforeRow event and preserve the functionality of the >"super" class (uHdrSuperTable, etc.). > > >On Wed, 23 Jul 1997 09:05:42 +0100, Mike Ripley ><mike.ripley@excelsis.co.uk> wrote: > >>I have developed a supertable class (ppsuptab). In the beforerow event I >>determine the current row of number of rows retrieved to display at the >>bottom of the window. No problems. >> >>In the derived supertable (mysuptab) I need to do some look ups in the >>beforerow event, however this beforerow event overrides the inherited >>beforerow event and the display number of rows disappears. >> >>The closest acceptable solution I have been offered is to include an >>"extrabeforerow" function at the end of the beforerow event in class >>ppsuptab that does nothing and override this function in derived class >>mysuptab. >> >>Problem is that this imposes a seperate external rule for our >>installation eg "For classes derived from ppsuptab do not put code in >>beforerow event use extrabeforerow function". >>Is there a better solution? >>Cheers >>-- >>Mike Ripley > I would like to thank everyone for their help on this subject, but all the solutions still require the developer to be aware of the event functionallity of the parent class. Either you remember to override a function or you remember to make a call in the child event. Whilst I am now resigned to using one of the two methods surely this is contrary to the concept of inherited functionally through the class structure? Thanks again -- Mike Ripley