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

  • Creator
    Topic
  • #4396
    Serhan
    Participant

      Hi Support Team,

      my connection to my access DB works fine and i can Promt every Item with msgbox… everything good.. But how can I fill the data of my RecordSet to my Listview?

      thanks a lot…

    • Author
      Replies
    • #8076
      Support 3
      Participant

        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

      Viewing 1 replies (of 1 total)
      • You must be logged in to reply to this topic.