and are the other character counts ALWAYS the same
2 characters ('20' in your example) followed by
5 Characters ('Tom ' or 'Jimmy' in you examples) foloowed by
10 Characters ('Brady ' or 'Brad ' in your examples) followed by
5 Characters ('12340' in your example) followed by
4 characteres ('golf' or 'base' in your examples)
AW
0
There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
Dim position1 As Int16 = temp1.IndexOf(" ")
Dim position2 As Int16 = temp2.IndexOf(" ")
Dim position3 As Int16 = temp3.IndexOf(" ")
Dim position4 As Int16 = temp4.IndexOf(" ")
Dim position5 As Int16 = temp5.IndexOf(" ")
If position1> 0 Then
temp1 = temp1.substring(0,position1)
End If
If position2> 0 Then
temp2 = temp2.substring(0,position2)
End If
If position3> 0 Then
temp3 = temp3.substring(0,position3)
End If
If position4> 0 Then
temp4 = temp4.substring(0,position4)
End If
If position5> 0 Then
temp5 = temp5.substring(0,position5)
End If
in the loop, I append a ":" after each substring, so this last statement drops the ":" which would have appeared after the LAST block. It takes the Substring the starts at the first character and extends to the next to last character (Length - 1)
AW
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
1 Character
2 DIGITS
5 Characters (may have trailing blanks)
10 Characters (may have trailing blanks)
5 Digits
4 characters
Is that correct?
AW