Results 1 to 7 of 7

Thread: [RESOLVED] getting subitem values from Listview

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Re: getting subitem values from Listview

    Quote Originally Posted by Fazi
    The first column value should be
    Code:
    AuditInfoID = lvwAudit.ListItems(1).text
    or
    Code:
    AuditInfoID = lvwAudit.ListItems(1)
    (1) is the listitem 1.

    Thanks! that works for the first column but when I try to get the value for the second column with

    Code:
    AuditCheckDt = lvwAudit.ListItems(2).Text
    It says "Index out of bounds". How do I get the values from the other columns?

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: getting subitem values from Listview

    Quote Originally Posted by obscuregirl
    Thanks! that works for the first column but when I try to get the value for the second column with

    Code:
    AuditCheckDt = lvwAudit.ListItems(2).Text
    It says "Index out of bounds". How do I get the values from the other columns?
    Yes, the second coumn is alwas subitem(1)

    so you dont need the subitems(4). this is what cause the error.coz there is no column for it.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Resolved Re: getting subitem values from Listview

    Thanks for your help Fazi, that's working now!

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