I think I'm missing something here... but is there someway to get the String
information from a ListView without the garbage that I get?
For example, I've a ListView with a couple of columns... and if I want to get
the String in a Column and I use something like LItem.SubItems(2).ToString.
This give me something like "ListViewSubItem: {60-004}" ---> where '60-004' is
the string I'm looking for. So I have to 'remove the before and after junk as
follows:
Dim TmpStrng, TmpStrng1 As String
Dim LItem As ListViewItem
Dim LItems As ListView.SelectedListViewItemCollection
LItems = lvModDwgs.SelectedItems
' INFO - LItem.SubItems(2).ToString = "ListViewSubItem: {60-004}"
' Remove ListViewSubItem Gargage!
For Each LItem In LItems
' Global Selection Item
gblSelItem = LItem.Text
lblDwgRename.Text = gblSelItem
' Layout Name
' Remove the Before and After junk information
TmpStrng = LItem.SubItems(1).ToString
TmpStrng = Microsoft.VisualBasic.Right(TmpStrng, Len(TmpStrng) - 18)
TmpStrng = Microsoft.VisualBasic.Left(TmpStrng, Len(TmpStrng) - 1)
txbDwgRename.Text = TmpStrng
Next ' LItem
So there be an easier way? True? If so... please what?
Thanks in advance.
Bruce F