ok i've got an input code that the user enters in to the program but i need to split it in to 3 differnt sections but i cant figure out how to do it can anyone help? e.g. 122131 needs to be 12 21 31
Printable View
ok i've got an input code that the user enters in to the program but i need to split it in to 3 differnt sections but i cant figure out how to do it can anyone help? e.g. 122131 needs to be 12 21 31
is it always going to be 3 sections of 2 characters each? If so just use
Code:InputString= "1222131"
Part1 = InputString.Substring(0,2)
Part2 = InputString.Substring(2,2)
Part3 = InputString.Substring(4,2)
brilliant thanks