String.Substring(int index, int length)
Returns part of the string, starting from character index and length
characters long.
index is the initial character index, where 0 is the first character and
(Length - 1) is the last. length specifies how many characters to retrieve.
Example:
String mystring = "Hello World!";
String substring = mystring.Substring(3, 5);
Display("Original: %s, Substring: %s", mystring, substring);
will display "Original: Hello World!, Substring: lo Wo".
See Also: String.Append, String.Chars
|