Click to See Complete Forum and Search --> : Query result


Leite33
September 19th, 2006, 02:56 AM
Hi
Please help. How can i take a result of a query and put it in if statement;
Something like this
if(queryresult==Name)
because i want to check if a specific record exist to my database

kirants
September 19th, 2006, 11:27 PM
What is it that you are having trouble with ?

Fetching records from DB?
Parsing the result of query?
Comparing of result with predefined value?
Are you using MFC or is it plain C/C++ ?

Leite33
September 20th, 2006, 01:26 AM
i want to parsing the result of query, use it. I amusing c++ in BCB6, programming with componnents

greg_dolley
September 23rd, 2006, 10:18 PM
How are you accessing the field? Are you using ADO? The database's API directly?

Greg Dolley

Leite33
September 24th, 2006, 12:29 AM
Sorry.. Yes i use ADO. And blob method to save pics.. So i want to check if a speciefic pic exist on my database. And i think to make a query is the only way