System.AnsiStringBase.Delete

From RAD Studio API Documentation
Jump to: navigation, search

C++

AnsiStringBase&  Delete(int index, int count) _ALWAYS_INLINE {

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringBase

Description

Removes a specified number of characters from the string.

Delete modifies the AnsiStringBase 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.

If index is larger than the length of the AnsiStringBase or less than 1, no characters are deleted.

If count specifies more characters than remain (starting at the index), Delete removes the rest of the string. If count is less than 0, no characters are deleted.