Cut string???

ASH

Active member
Joined
Nov 20, 2005
Messages
30
Location
Riyadh
Programming Experience
Beginner
Hello,,,

I have string ... eg " ABCEDFGHIJKL"

and I would like to cut it to 4 strings

"ABC"
"DEF"
"GHI"
"JKL"

How I can do this .. ?

Regards

:)
 
The second link provides links to the specific overloads of the Substring method. Had you followed those you would have seen real examples.

myString.Substring(0, 3) returns a substring from myString starting at index 0 and containing 3 characters. You should be able to work out the others from that.
 
Back
Top