Re: Listview(small error)
seriously..know one knows? Its simple, i know it is.
edit**figured it out.
had the a and the 1 backwards
Re: Listview(small error)
Have you tried Debugging?
Re: Listview(small error)
yes, and it would say index out of bounds. thats why i posted...
Re: Listview(small error)
You are looping through the ListItems with the a variable,
but using a to select SubItems (Columns) in the loop:
Form1.ListView.ListItems.Item(1).ListSubItems.Item(a).Text
To loop through the main ListItems you need to use the "a"
in the ListItems part. If you have less columnheaders than you
have listitems the way your code is, it will crash.
Should it be:
Form1.ListView.ListItems.Item(a).ListSubItems.Item(1).Text
or
Form1.ListView.ListItems(a).Text
?
Re: Listview(small error)
Quote:
Originally Posted by |2eM!x
yes, and it would say index out of bounds. thats why i posted...
Debugging is not simply running the program until you get an error message, but rather it is the process of setting breakpoints and/or watches to help determine why the error message is displayed.