End Position of a list box entry

TomN

New member
Joined
Jan 5, 2010
Messages
1
Programming Experience
Beginner
I am trying to find the last position of a name in a list.
I have tried the following:
Dim instructorp As String = lstInstructor.SelectedItem.ToString
Dim endpos As Integer = instructorp.Length
"Length" does not retieve a value. I think it is because there is a tab character in the string. Any ideas?
Thanks
 
It's unclear what you mean when Length doesn't return a value. Length would still return a value, whether or not there was a tab character in the string, or if it was empty. At the very least it would be 0.
 
Back
Top