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


Check if one string starts with another


Source position: syshelph.inc line 172

public function TStringHelper.StartsWith(

  const AValue: string

):Boolean; overload;

function TStringHelper.StartsWith(

  const AValue: string;

  IgnoreCase: Boolean

):Boolean; overload;


StartsWith will return True if the first characters of the string (Self) equal the string AValue. If IgnoreCase is True, then the comparison is done case insensitive. The default is to compare strings case sensitively.

See also



Check if the string is ended by another.

Documentation generated on: May 14 2021