🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #93

Calculating Fields OnChange or OnCalc?

#93
From: TJ
Date: Fri, 10 Jul 1998 00:00
19 lines
1437 bytes
Is it possible to use a fields OnChange event to calculate a value for
another field?

For example I want to determine the average of four fields and post
the result in a fifth field.  Now everytime I change a value in one of
the four field I want it to recompute and update the fifth field.  

Am I restricted to using the OnCalcFields event or can I simply use
the OnChange event for the four different fields?

Thanks.
********************************************************
Reply To:  redleg7@bigfoot.com or ICQ:  1889495
********************************************************
Project:  Football(Soccer) Management Sim 
Compiler/Language:  Delphi 3
Remarks:  If you are interested in this project drop me 
line or ICQ me.
********************************************************
Technical Details
Message-ID: <35a662b7.414586@news.earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ffff5,93e4a16f19cca31c,start
X-Google-Attributes: gidffff5,public
X-Google-Thread: ff75c,93e4a16f19cca31c,start
X-Google-Attributes: gidff75c,public
From: redleg7@bigfoot.com (TJ)
Subject: Calculating Fields OnChange or OnCalc?
Date: 1998/07/10
Message-ID: <35a662b7.414586@news.earthlink.net>
X-Deja-AN: 370278479
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: EarthLink Network, Inc.
Mime-Version: 1.0
Reply-To: See Sig To Reply
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.desktop