Re: NEWERA - beforerow -- supertable class
Posted in 1997
Mike Ripley 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 see no other way too ... calling an event would maybe be nicer than calling a function but on the general problem that you must prevent input of anything into the event handler I agree. This information must be part of the object's documentation. Moreover with the window painter you can fool yourself easily by putting blank lines or comments into the event handler: it will overwrite (at least with one 2.x version and events returning boolean like the one you worry about). Cheers Dirk -- -- Dipl.-Math. Dirk Gunsthoevel phone: +49 (0)251 624947 -- Hoeftestr.49 fax: +49 (0)251 624177 -- 48167 Muenster 2*3*3*37 - the prime factorization of the beast -- Germany http://members.aol.com/Plabit/welcome.html