Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Filling a std::vector using TADOConnection

dsylebeedsylebee Member Posts: 1
Hi everyone, I'm new to borland and figuring out alot of stuff by force since my internship to get my programming diploma is on a language i've not learned untill GUI though I'm doing fine I need a litle help.

I have a TADOConnection and im wondering how can I loop trough a table
record set to store inside my vector.

simplefied example:

std::vector names;

table content ID firstname lastname

std::string query = "SELECT (firstname + ' ' + lastname) As Fullname FROM NAMETABLE ORDER BY ID";;

w/e how to get them inside something

while ( myobj.canstillread )
{
names.push_back( myobj.Table["NAMETABLE"]["fullname"] );
}

I hope you understand my pseudo code :o
Sign In or Register to comment.