String.Remove

Syntax

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

Parameters

Source - source string.

Start - 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 Main;

Var

s, s1, s2: String;

Begin

s := "abcDef";

s1 := String.Remove(S, 3, 1);

s2 := String.Remove(S, 3, 5);

End Sub Main;

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

See also:

String