![]() |
![]() | #1 |
Младенец Join Date: 06 2009 Location: Bulgaria
Posts: 1
Downloads: 0 Uploads: 0
Reputation: 0 | 0 | ![]()
Hello! I am not very good at BCB and I want to ask you that question: Let`s imagine that we have a TIBQuery and we do something and we have some rows! I want to take the count of them and for each of them to check it`s value whether or not is equal to some value char *buf for example? I know that I have to do that: IBQuery->True; IBQuery->FetchAll(); for(i=0;i< RecordCount;i++){ fetch the value from each row in the field("segment") and check and compare with char * buf } 10x a lot! |
![]() |
![]() | #2 | |
Дошкольник Join Date: 03 2003 Location: 2A Age: 49
Posts: 104
Downloads: 0 Uploads: 0
Reputation: 0 | 0 | ![]() Quote:
1. Use "SELECT COUNT() ..." like queries to fetch real records count 2. Call IBQuery.Last, before using RecordCount 3. If you need to operate with all records: while not IBQuery.Eof; do ...... done | |
![]() |
![]() |
Thread Tools | |
|
На правах рекламы: | |
![]() | |