/ Forums / Advansys Formativ / Creating Solutions with Formativ / Fill ListView with RecordSet Data ( ADO ) / Reply To: Fill ListView with RecordSet Data ( ADO )

Support 3

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

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:

Advansys Support