Tquery output

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Tquery output

Postby one » Sat Jul 10, 2004 5:00 pm

Hi, i need get the output of query select count (*), from .....


the output is a number.

how i get this number for put in a graphic??


Thanks
one
 

Postby Damon » Fri Jul 23, 2004 8:46 am

Hi,
Have a look at this thread...

http://tinyurl.com/4yczt

Good luck,
Damon
User avatar
Damon
BCBJ Editor and Admin
BCBJ Editor and Admin
 
Posts: 285
Joined: Wed May 26, 2004 11:25 pm
Location: Stillwater, OK, USA

TQuery output

Postby TerryC » Tue Aug 10, 2004 10:11 am

Try something like this:

...

int CountValue;

MyQuery->SQL->Text = "select count(*) from A_TABLE"
MyQuery->Open();

CountValue = MyQuery->Fields->Fields[0]->AsInteger;

// Use CountValue for graph, etc.
...

-Terry
TerryC
 


Return to Technical

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron