Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All, The Event tfield onChang

Status
Not open for further replies.

medhome55

Programmer
Jul 16, 2021
1
0
0
NL
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top