Skip to content

TStringHelper.Insert

Insert a string at a given position

Declaration

Source position: syshelph.inc line 129

public 
  function Insert(StartIndex: SizeInt; const AValue: string) : string;

Description

Insert inserts the string AValue in a string (Self) at the (zero-based) position StartIndex. It returns the resulting string (Self). If StartIndex is less than zero, it is set to zero. If StartIndex is higher than the length, AValue is appended to the string.

See also

Name Description
Insert Insert one string or dynamic array in another.