Results 1 to 3 of 3

Thread: Listview with 3 columns help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    Thumbs down

    Can anyone tell me how I can display a comma-separated textfile in a listviewbox with 3 columns when the form loads?

    The textfile contains the following data:
    script1, path1, time1
    script2, path2, time2
    script3, path3, time3
    ......


  2. #2
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    try this for listing mutipul columns... set it up to view as a report
    then this adds the new line... replace rsClone("RefNo") with the first column in your file
    Set NewItem = lvFind.ListItems.Add(, , rsClone("RefNo"))

    then add the rest of your columns like this.
    NewItem.SubItems(1) = rsClone("StyleID")
    NewItem.SubItems(2) = CDate(rsClone("Date"))

    if you need more help let me know.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27
    Nathan,

    Thanx, I think I need more help (means I'm sure I need more help)....

    The problem is that I want to export the (comma-separated) data from the textfile into the listview control automatically when the form loads.

    ........




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