[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)


Insert a string at a given position


Source position: syshelph.inc line 129

public function TStringHelper.Insert(

  StartIndex: SizeInt;

  const AValue: string



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



Insert one string or dynamic array in another.

Documentation generated on: May 14 2021