Does anyone know how to read the selected data from a ListBox control (Microsoft 2.0 ListBox)?
Here is the code (error is in red):
[tt]
If lstPostProcErrLog.ListCount > 0 Then
For i = 0 To lstPostProcErrLog.ListCount - 1
If lstPostProcErrLog.Selected(i) Then
[tt]strErrLog = lstPostProcErrLog.ItemData(i)[tt]
MsgBox strErrLog
End If
Next i
End If
[/color] [/color] [/tt]
tia,
GGleason
Here is the code (error is in red):
[tt]
If lstPostProcErrLog.ListCount > 0 Then
For i = 0 To lstPostProcErrLog.ListCount - 1
If lstPostProcErrLog.Selected(i) Then
[tt]strErrLog = lstPostProcErrLog.ItemData(i)[tt]
MsgBox strErrLog
End If
Next i
End If
[/color] [/color] [/tt]
tia,
GGleason