 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Lieven Keersmaekers Guest
|
Posted: Mon Mar 07, 2005 9:43 pm Post subject: Re: sum fields |
|
|
Kostas,
IBQuery.FieldByName('Sum_Field').AsInteger;
IBQuery.Fields[0].AsInteger;
hth,
Lieven
"Kostas Liatifis" <texilia (AT) otenet (DOT) gr> wrote
| Quote: | Dear Sir
I have this statement from a IBQuery
IBQuery.SQL.Add('Select Sum(Field) AS Sum_Field from IBTable where
(Field=:Field)');
IBQuery.ParamByName('Field').AsInteger:=AInteger;
IBQuery.Open;
How i get the result from the Sum_Field?
Please write the code
Check please if i have any error to the statement
Thank you for your time
|
|
|
| Back to top |
|
 |
Kostas Liatifis Guest
|
Posted: Mon Mar 07, 2005 9:49 pm Post subject: sum fields |
|
|
Dear Sir
I have this statement from a IBQuery
IBQuery.SQL.Add('Select Sum(Field) AS Sum_Field from IBTable where
(Field=:Field)');
IBQuery.ParamByName('Field').AsInteger:=AInteger;
IBQuery.Open;
How i get the result from the Sum_Field?
Please write the code
Check please if i have any error to the statement
Thank you for your time
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|