Hi All,
The Event tfield onChange is fired when we update a record but not fired when we reset it
( ex cancelUpdate or simply cancel ) . Can we change this behavior? I use cachedUpdate.
I did
afterRefresh I do sumOf(field) : It's my own procedure doing sum in dbgrid.
Onchange ( field) Do UpdateSum ( field)
Procedure updateSum ( field:TFIELD)
with field do som:=som+value-oldvalue;
This procedure is fired when we change field.value but not when we reset it to oldvalue ( cancelUpdate or simply cancel).
Medhome
The Event tfield onChange is fired when we update a record but not fired when we reset it
( ex cancelUpdate or simply cancel ) . Can we change this behavior? I use cachedUpdate.
I did
afterRefresh I do sumOf(field) : It's my own procedure doing sum in dbgrid.
Onchange ( field) Do UpdateSum ( field)
Procedure updateSum ( field:TFIELD)
with field do som:=som+value-oldvalue;
This procedure is fired when we change field.value but not when we reset it to oldvalue ( cancelUpdate or simply cancel).
Medhome