[To be supplied.]
Converts a substring of this string to an array of characters, beginning at a specified point in this string.
[Visual Basic] Overloads Public Function Substring(Integer, Integer) As String
[C#] public string Substring(int, int);
[C++] public: String* Substring(int, int);
[JScript] public function Substring(int, int) : String;
Converts a substring of this string to an array of characters.
[Visual Basic] Overloads Public Function Substring(Integer) As String
[C#] public string Substring(int);
[C++] public: String* Substring(int);
[JScript] public function Substring(int) : String;
Managed C++:
Note This example shows how to use one of the overloaded versions of Substring. For other examples that may be available, see the individual overload topics.
String *myString = L"abc"; String::Compare(myString->Substring(2,1), L"c") == 0; // THIS IS TRUE myString->Substring(3,1); // THROWS AN ArgumentOutOfRangeException String::Compare(myString->Substring(3,0), String::Empty) == 0; // THIS IS TRUE