Okay, so I'm trying to validate a string which is a name so that it the user accidently entered a space at the end or beginning it'll remove it.
I have this code
This just displays System.char[]
Any ideas, first time doing this so if it's something easy I'm very sorry.
I have this code
Code:
If ClientNameBox.Text.Contains(" ") Then
Dim Characters As Array
MsgBox("THIS")
Characters = ClientNameBox.Text.ToCharArray
For Each character In Characters
If character = " " Then
character = ""
End If
Next
ClientNameBox.Text = Characters.ToString
This just displays System.char[]
Any ideas, first time doing this so if it's something easy I'm very sorry.