Can inherited code call derived code? If so how.
I have identical 'generic' code that I am repeating again and again
in several derived form because I don't know how to get inherited
code to call derived code. Am I stuck with this situation or is there a
way around it? Below is some sample code.
=============== ===============
Private Sub LoadDataInForm( ) '= Form_Load
Call FillDataSet()
Call CreateBindings( )
Call DataEntryContro lsAccessible(Fa lse)
Call HideDgColumns()
Call NewCancelSaveCl oseButtonState( "NewClose")
End Sub
Private Sub RemoveRow() ' RemoveAt button
_bmb.RemoveAt(_ bmb.Position)
Call DataEntryContro lsAccessible(Fa lse)
Call NewCancelSaveCl oseButtonState( "NewClose")
Call UpdateDataSet()
End Sub
=============== ===============
Most of the calls call code in the derived forms.
Is there a way around duplicating this code in every form?
- Doug
I have identical 'generic' code that I am repeating again and again
in several derived form because I don't know how to get inherited
code to call derived code. Am I stuck with this situation or is there a
way around it? Below is some sample code.
=============== ===============
Private Sub LoadDataInForm( ) '= Form_Load
Call FillDataSet()
Call CreateBindings( )
Call DataEntryContro lsAccessible(Fa lse)
Call HideDgColumns()
Call NewCancelSaveCl oseButtonState( "NewClose")
End Sub
Private Sub RemoveRow() ' RemoveAt button
_bmb.RemoveAt(_ bmb.Position)
Call DataEntryContro lsAccessible(Fa lse)
Call NewCancelSaveCl oseButtonState( "NewClose")
Call UpdateDataSet()
End Sub
=============== ===============
Most of the calls call code in the derived forms.
Is there a way around duplicating this code in every form?
- Doug
Comment