calculated field

How can I get the sum of a calculated field ?

Andrew
andrewyuAsked:
Who is Participating?
 
skatan187Commented:
I am not sure if that's what you ment?
0
 
viktornetCommented:
What calculated field?? you mean in a database??please give further explanatin...

-Viktor
0
 
venksCommented:
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
andrewyuAuthor Commented:
That's ok !

Thank you very much !

Andrew
0
 
andrewyuAuthor Commented:
Adjusted points to 10
0
 
skatan187Commented:
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
 
andrewyuAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.