RAD Studio VCL Reference
|
Removes a specified number of characters from the string.
function Delete(index: Integer; count: Integer): AnsiStringT&;
__fastcall AnsiStringT& Delete(int index, int count);
System::AnsiStringT::Delete modifies the System::AnsiStringT to remove count characters from the string beginning with the character at index, where 1 is the index of the first character. It returns the resulting modified string (*this).
If index is larger than the length of the System::AnsiStringT or less than 1, no characters are deleted.
If count specifies more characters than remain starting at the index, System::AnsiStringT::Delete removes the rest of the string. If count is less than 0, no characters are deleted.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|