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!

ListView Item setter

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0


Hello,

i want to put information from a access database in a listview.

Heres my code so far:


void __fastcall TProbleemForm::FormCreate(TObject *Sender)
{
DatabaseForm->ProbleemRegistrerenTable->Open()

for( int i = 0; i<DatabaseForm->ProbleemRegistrerenTable
->RecordCount; i++ )
{
//Here there have to be more code, something like
//ListView1->Item->Add(....) i think, but that does not work

DatabaseForm->ProbleemRegistrerenTable->Next();
}
}

Now is my qeustion what i've got to do to put the information from my database-table-index to a column in the listview and how i set the right column for each index in the database-table (cause i have more than one column in my listview for a record in the database)

Ok...thanx in advance,

silkk


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top