/ Forums / Advansys Formativ / Creating Solutions with Formativ / Fill ListView with RecordSet Data ( ADO ) / Reply To: Fill ListView with RecordSet Data ( ADO )
October 13, 2008 at 4:51 pm
#8076
You will need to iterate the record item and fill the ListView.
Sample code to iterate records.
set oRecord = nothing set oRecord = oDataSrc.FirstRecord while (not oRecord is nothing) set oListItem = MainDlg.listView.Items.Add oListItem.caption = oRecord.Name set oListItem = nothing set oRecord = oDataSrc.NextRecord wend
We always recommend to review control’s (i.e. ListView) properties and methods prior to coding. You can access the documentation link from the thread below:
http://www.advansyscorp.com/forums/topic/3971028821/
Regards,
Advansys Support