Hello!
I am using BCB and I really need a help
I have to fetch the value from each row in a table and I know I have to add a loop,but when I read the buffer-it takes only the firs value in the firs row in the field and I need to take every row value one by one...

void *buffer;
buffer=malloc(N);
IBQuery->FetchAll();

for (int i=0;i<IBQuery->RecordCount;i++) {
IBQuery->FieldByName("STOINOST")->GetData(buffer);
}
How to make moving throw rows?
10X a lot...

I solved my problem:
I use
IBQuery->Next();
It so simply :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.