String.Remove

Syntax

Remove(Source: String; Start: Integer; Length: Integer): String;

Parameters

Source. Source string.

Start. The position, starting from which characters will be removed.

Length. The number of removed characters.

Description

The Remove method removes the specified number of characters, starting from the specified position in the source string.

Example

Sub UserProc;
Var
    s, s1, s2: String;
Begin
    s := "abcDef";
    s1 := String.Remove(s, 31);
    s2 := String.Remove(s, 35);
End Sub UserProc;

After executing the example the "s1" variable contains the abcef value, and the "s2" variable contains the abc value.

See also:

String