Results 1 to 3 of 3

Thread: [Resolved] Listview with Multi columns to array?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    [Resolved] Listview with Multi columns to array?

    I am currently using the following code to store all of the items from a listbox control in an array, and then build a string based on the array items, trimming the last two character of the string to remove the ", ". I am looking to do something similiar for my multicolumn listview control but am concerned about how to store the multiple subitems for each item in the array.

    Code:
    Dim myStr (listbox1.items.count) as String
     'store all active medications information in an array & build a string
            For i As Integer = 0 To listbox1.Items.Count - 1
                myStr(i) = listbox1.Items.Item(i).ToString
            Next
    
     myStrResult = String.Join(", ", myStr)
     myStrResult = Left(myStrResult, Len(myStrResult) - 2)
    Thanks for any suggestions.

    -Jeremy
    Last edited by hipopony66; Feb 25th, 2009 at 03:22 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width