469,611 Members | 1,918 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,611 developers. It's quick & easy.

function to remove substring from string

Is there a function that'll let me find a substring of a fixed size? in
other words, I'd like to get a substring in position X and length Y from a
string. Left or Right wouldn't work since the substring's usually in the
middle.
Thanks.

Nov 15 '05 #1
3 19013
Thus spake vaughn:
Is there a function that'll let me find a substring of a fixed size?
in other words, I'd like to get a substring in position X and length
Y from a string. Left or Right wouldn't work since the substring's
usually in the middle.
Thanks.


<string>.Substring(start, length);

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
Nov 15 '05 #2
The String.Substring Method.....

Regards,
Lani

"vaughn" <VM> wrote in message news:u4**************@TK2MSFTNGP10.phx.gbl...
Is there a function that'll let me find a substring of a fixed size? in
other words, I'd like to get a substring in position X and length Y from a
string. Left or Right wouldn't work since the substring's usually in the
middle.
Thanks.

Nov 15 '05 #3
<"vaughn" <VM>> wrote:
Is there a function that'll let me find a substring of a fixed size? in
other words, I'd like to get a substring in position X and length Y from a
string. Left or Right wouldn't work since the substring's usually in the
middle.


string sub = original.Substring (x, y);

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mikael Petterson | last post: by
7 posts views Thread by Radhika Sambamurti | last post: by
11 posts views Thread by ALI-R | last post: by
9 posts views Thread by Kishor | last post: by
8 posts views Thread by mannyGonzales | last post: by
12 posts views Thread by tfelb | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.