RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::Delete Method

Removes specified number of characters from string.

Pascal
function Delete(index: Integer; count: Integer): UnicodeString&;
C++
__fastcall UnicodeString& Delete(int index, int count);

System::UnicodeString::Delete modifies the System::UnicodeString object 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 character length of the System::UnicodeString object or less than 1, no characters are deleted. 

If count specifies more characters than remain starting at the index, System::UnicodeString::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!