0

I would like to convert the following code to .NET from VB6

While Not rsMem.EOF
        i = i + 1

            lstView.ListItems.Add i, , rsMem.Fields("lname").Value
            With lstView.ListItems(i)
                .SubItems(1) = IIf(IsNull(rsMem.Fields("fname").Value), "-", rsMem.Fields("fname").Value)
                .SubItems(2) = IIf(IsNull(rsMem.Fields("Title").Value), "", rsMem.Fields("Title").Value)
                .SubItems(3) = IIf(IsNull(rsMem.Fields("telNo").Value), "", rsMem.Fields("telNo").Value)                
                .Tag = rsMem.Fields("per_id").Value
            End With
            rsMem.MoveNext
    Wend

lstView is a listview on the form.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by __avd
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.