dealing with continuous multiple values in textbox

outcast1881

Active member
Joined
Aug 25, 2006
Messages
38
Programming Experience
Beginner
Hello everyone,
maybe Ia m asking something very easy but I couldn't solve it and couldn't find any examples in internet...

In my textbox I am receiving 28 charactervalues in this form(2 values in one line):

111111111111111111111111111144444444444444444444444444444
132456487145454878787878788878784645646745458786368978798

and it is not always 2 lines(4 values) sometimes 1 line sometimes 10 lines etc.

i need to take first 18 characters from each value and attain it to variable and save it in SQL datatable,and the the characters between 18-24 i have to save it in another field in sql.I have to do it for all the values in my textbox.I am receiving data through tcp client and refresh ing my textbox.

I have no idea how I can do that...yes I have to loop,I have to use substring but I can't put the pieces together,I am new in programming (70 days)...

I hope someone can give me some ideas or a website that I can find some examples about it....


thanks in advance...

Can
 
Back
Top