function to remove substring from string

  • Thread starter Thread starter vaughn
  • Start date Start date
V

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.
 
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);
 
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);
 
Back
Top