Delete procedure removes a substring from a string.
Deletes a substring of the Str string from the position specified in the Index parameter (starting from 1). The length of the deleted substring is specified in the Count parameter.
The procedure has the following parameters:
Specifies the source string and stores the resulting string.
Specifies the number of the character from which the deletion starts. If Index is larger than the length of the string or less than 1, no characters are deleted.
Specifies the length of the removed substring. If Count specifies more characters than Str contains (starting from Index), the procedure removes the rest of the string. If Count is less than or equals 0, no characters are deleted.