C
Coderz
Hi,
I am using the code below to get a value from the selected item in my
listview:
Dim FolioNumber As String
For Each sItem As ListViewItem In lvList.SelectedItems
FolioNumber = sItem.Text
Next
With frmCheckIn
.State = modGlobal.FormState.adStatePopupMode
.FolioNumber = FolioNumber ' < = Variable "FolioNumber" is
used before it has been assigned a value. A null reference exception
coult result at runtime.
.ShowDialog()
Call FillList()
End With
frmCheckIn = Nothing
However, the FolioNumber variable has a comment from the IDE of VB.NET
as commented above.
Anyone know what is the better way of getting a value from selected
item in the listview?
I am using the code below to get a value from the selected item in my
listview:
Dim FolioNumber As String
For Each sItem As ListViewItem In lvList.SelectedItems
FolioNumber = sItem.Text
Next
With frmCheckIn
.State = modGlobal.FormState.adStatePopupMode
.FolioNumber = FolioNumber ' < = Variable "FolioNumber" is
used before it has been assigned a value. A null reference exception
coult result at runtime.
.ShowDialog()
Call FillList()
End With
frmCheckIn = Nothing
However, the FolioNumber variable has a comment from the IDE of VB.NET
as commented above.
Anyone know what is the better way of getting a value from selected
item in the listview?