Thread: query result

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    46

    query result

    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

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    46
    Please any good ideas for help????

  3. #3
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,794
    You should read a rference for your ADOQuery class - and find a way how to retreive the results.
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    David J. Wheeler

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    46
    Hey ok but you dont have any more practical idea to help me???? Any simple example just how i can post the result in edit or something????

  5. #5
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,794
    I'm not familiar with the class you are using
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    David J. Wheeler

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    46
    ok if you think anything send me!!! Thanks for help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  2. Need help with basic calculation program.
    By StateofMind in forum C Programming
    Replies: 18
    Last Post: 03-06-2009, 01:44 AM
  3. Promblem with code
    By watchdogger in forum C Programming
    Replies: 18
    Last Post: 01-31-2009, 06:36 PM
  4. Can someone help with my seg fault?
    By John_L in forum C++ Programming
    Replies: 23
    Last Post: 03-01-2008, 04:04 PM
  5. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 05:27 AM