Hi

I want to ask something about queries!!!! I want to make a complicate query in C++ but i dont know how to get the result in MessageBox....

More spesifiec:

ADOQuery1->Close();
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add("Select INT (AVG(Length) As Leite from Distance");

ADOQuery1->ExecSQL();

How i can take the average in variable int or float and then print it in Message