Thanks for showing me the way of doing it!

It helped a lot!

Regards,
iDesmet

On Nov 1, 1:09 am, Cerebrus <[EMAIL PROTECTED]> wrote:
> The ListView control maintains a CheckedListViewItemCollection which
> is accessible through its CheckedItems property. This collection will
> allow you to iterate over all ListViewItems that have been checked. I
> suppose you can easily use this collection in your Procedure.
>
> On Nov 1, 1:45 am, iDesmet <[EMAIL PROTECTED]> wrote:
>
> > Good day!
>
> > I was wondering if someone could show me the way with this little
> > problem I have.
>
> > I need to get the value/text of every checked SubItems in a listview
> > so I can execute a Sub.
>
> > The Sub I had created needs such value for inserting data in MySQL. My
> > Sub is called: InsertSelItem(ByVal SelItem As Integer)
>
> > I have a ListView (lvwItems) with Items that I get from a DB. In
> > lvwItems I have two columns. I get the value or text of a specific
> > item in a specific column using this:
>
> > Me.lvwItems.CheckedItems.Item(0).SubItems(1).Text
>
> > I also can get the number of checked items using this:
>
> > Me.lvwExpense.CheckedItems.Count.ToString
>
> > The question is: How can I execute a Sub with the value/text of every
> > checked item in the ListView?
>
> > Thanks in advance!
>
> > Regards,
> > iDesmet

Reply via email to