Article View: comp.lang.pascal.delphi.databases
Article #92Re: Calculating Fields OnChange or OnCalc?
From: Pepsi-Cola
Date: Tue, 14 Jul 1998 00:00
Date: Tue, 14 Jul 1998 00:00
18 lines
1592 bytes
1592 bytes
As the user types in numbers, the OnChange will calc your total on each digit typed in. Probably annoying. Go for OnExit. It will then calc as soon as the hit Enter, Tab, OK_button, etc. The only time OnExit won't compute is if they change to a different window, such as alt-tab, etc, in which case they never really exited the Edit_field on that particular window. Something I found tolerable, and hardly ever happens. Dustin > 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?
Technical Details
Message-ID:
<35AB5CD6.6FCC@lse.fullfeed.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35a662b7.414586@news.earthlink.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff75c,93e4a16f19cca31c X-Google-Attributes: gidff75c,public X-Google-Thread: ffff5,93e4a16f19cca31c X-Google-Attributes: gidffff5,public From: Pepsi-Cola <pepsimis@lse.fullfeed.com> Subject: Re: Calculating Fields OnChange or OnCalc? Date: 1998/07/14 Message-ID: <35AB5CD6.6FCC@lse.fullfeed.com> X-Deja-AN: 371333881 Content-Transfer-Encoding: 7bit References: <35a662b7.414586@news.earthlink.net> Content-Type: text/plain; charset=us-ascii Organization: FullFeed Madison (newsmaster@msn.fullfeed.com) Mime-Version: 1.0 Reply-To: pepsimis@lse.fullfeed.com Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.desktop