Passa al contenuto principale

Delete

Removes a substring from a s string.

Structure

Delete(var S: string; Index, Count:Integer);

Parameters

Description

Delete removes a substring of Count characters from string S starting with S[Index]. S is a string-type variable. Index and Count are integer-type expressions.

If Index is larger than the length of S, no characters are deleted. If Count specifies more characters than remain starting at the S[Index], Delete removes the rest of the string. |