|
-
Aug 21st, 2007, 04:22 AM
#1
Thread Starter
Lively Member
Re: getting subitem values from Listview
 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?
-
Aug 21st, 2007, 04:24 AM
#2
Re: getting subitem values from Listview
 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.
-
Aug 21st, 2007, 04:32 AM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|