Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change codebase to SQL

Status
Not open for further replies.

heydyrtt

Programmer
Dec 12, 2001
63
US
I'm changing a program from codebase to flashfiler, the below code will show the grid count after a filter has been done, and show in TotalEdit. How would you get this in SQL to do the same thing.

int numrecs = 0;

DM->tblResident->DisableControls();
for(DM->tblResident->GoTop();!DM->tblResident->Eof; DM->tblResident->Skip(1L)) {
numrecs++;
}
DM->tblResident->EnableControls();
TotalEdit->Text = IntToStr(numrecs);

Thanks

heydyrtt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top