Solved

calculated field

Posted on 1998-12-26
7
237 Views
Last Modified: 2010-04-04
How can I get the sum of a calculated field ?

Andrew
0
Comment
Question by:andrewyu
7 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1353091
What calculated field?? you mean in a database??please give further explanatin...

-Viktor
0
 
LVL 1

Expert Comment

by:venks
ID: 1353092
As far as i know there is no function in delphi to get the sum automatically.
Yoy can use SQL with a query component or use quickreport expressions to get the sum of any numeric field
venks
0
 

Author Comment

by:andrewyu
ID: 1353093
That's ok !

Thank you very much !

Andrew
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:andrewyu
ID: 1353094
Adjusted points to 10
0
 
LVL 1

Expert Comment

by:skatan187
ID: 1353095
I have a component
TMathParser1 :


Expression Evaluator v1.0 for Delphi                                         http://www.bitsoft.com                                          info@bitsoft.com                                                 { This file is distributed as freeware and without warranties of any kind. }
{ You can use it in your own applications at your own risk.                }
{ See the License Agreement for more information.                          }


0
 
LVL 1

Accepted Solution

by:
skatan187 earned 10 total points
ID: 1353096
I am not sure if that's what you ment?
0
 

Author Comment

by:andrewyu
ID: 1353097
Let say, I do "select sum(area * population) from country" in TQuery !
But, if I have a calculated field, called AP, in TTable now and I want to get the sum of this calculated field ?
So, I hope to know how can I get this value !

Andrew
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now