METHOD PRIVATE VOID OnPositionChanged (sender AS System.Object,
e AS System.EventArgs ): DEF VAR pbs AS Progress.Data.BindingSource NO-UNDO. pbs = cast(sender, 'Progress.Data.BindingSource'). btnPrev:Enabled = pbs:Position GT 0 . /*Prev*/ btnFirst:Enabled = btnPrev:enabled. btnNext:Enabled = pbs:Position LT (pbs:Count - 1). /*Next*/ btnLast:Enabled = btnNext:Enabled. DELETE OBJECT e NO-ERROR. END METHOD. |
METHOD PRIVATE VOID btnFirst_Click (sender AS System.Object,
e AS System.EventArgs ): bindingSource1:Position = 0. END METHOD. METHOD PRIVATE VOID btnNext_Click (sender AS System.Object, e AS System.EventArgs ): bindingSource1:Position = bindingSource1:Position + 1. END METHOD. METHOD PRIVATE VOID btnPrev_Click (sender AS System.Object, e AS System.EventArgs ): bindingSource1:Position = bindingSource1:Position - 1. END METHOD. METHOD PRIVATE VOID btnLast_Click (sender AS System.Object, e AS System.EventArgs ): bindingSource1:Position = bindingSource1:Count - 1. END METHOD. METHOD PRIVATE VOID btnSave_Click (sender AS System.Object, e AS System.EventArgs ): THIS-OBJECT:SaveRecord(). END METHOD. METHOD PRIVATE VOID btnAdd_Click (sender AS System.Object, e AS System.EventArgs ): THIS-OBJECT:AddRecord(). END METHOD. METHOD PRIVATE VOID btnDelete_Click (sender AS System.Object, e AS System.EventArgs ): THIS-OBJECT:DeleteRecord(). END METHOD. METHOD PRIVATE VOID btnCancel_Click (sender AS System.Object, e AS System.EventArgs ): THIS-OBJECT:CancelUpdate(). END METHOD. |
Button name
|
Click value
|
btnFirst
|
btnFirst_Click
|
btnPrev
|
btnPrev_Click
|
btnNext
|
btnNext_Click
|
btnLast
|
btnLast_Click
|
btnAdd
|
btnAdd_Click
|
btnDelete
|
btnDelete_Click
|
btnSave
|
btnSave_Click
|
btnCancel
|
btnCancel_Click
|