query result

This is a discussion on query result within the Windows Programming forums, part of the Platform Specific Boards category; Hi I want to ask something about queries!!!! I want to make a complicate query in C++ but i dont ...

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

    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
    43
    Please any good ideas for help????

  3. #3
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,471
    You should read a rference for your ADOQuery class - and find a way how to retreive the results.
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    43
    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
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,471
    I'm not familiar with the class you are using
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    43
    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, 12:44 AM
  3. Promblem with code
    By watchdogger in forum C Programming
    Replies: 18
    Last Post: 01-31-2009, 05:36 PM
  4. Can someone help with my seg fault?
    By John_L in forum C++ Programming
    Replies: 23
    Last Post: 03-01-2008, 03:04 PM
  5. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 04:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21