Remove(Source: String; Start: Integer; Length: Integer): String;
Source. Source string.
Start. The position, starting from which characters will be removed.
Length. The number of removed characters.
The Remove method removes the specified number of characters, starting from the specified position in the source string.
Sub UserProc;
Var
s, s1, s2: String;
Begin
s := "abcDef";
s1 := String.Remove(s, 3, 1);
s2 := String.Remove(s, 3, 5);
End Sub UserProc;
After executing the example the "s1" variable contains the abcef value, and the "s2" variable contains the abc value.
See also: