Hi
I have this line that tell me in which position I have a space in my string. I have an error that occur when the string doesn't have any space. How could I solve it?
Cpt1 = Me.Engineer.Text.IndexOf(" ", 1)
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll
Additional information: Argument 'Length' must be greater or equal to zero.
Thanks in advance
I have this line that tell me in which position I have a space in my string. I have an error that occur when the string doesn't have any space. How could I solve it?
Cpt1 = Me.Engineer.Text.IndexOf(" ", 1)
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll
Additional information: Argument 'Length' must be greater or equal to zero.
Thanks in advance