How can you look for a character in a certain position with VB.Net and
if the string length is less than the position have it return and
empty string instead of an error?
Substring returnns an error if the length is less than the position of
the character you want.
Ex. Dim x As String = 'ABCD'
x.Substring(5,1) returns error
I need a way to get the character or not return an error.
I don't want to have to do this
If x.length = 5 then
x.substring(5,1)
End If
Thanks