Skip to content

TStrings.ExtractName

Extract the name part of a string

Declaration

Source position: classesh.inc line 726

public 
  function ExtractName(const S: string) : string;

Description

ExtractName returns the name part (the part before the NameValueSeparator character) of the string. If the character is not present, an empty string is returned. The resulting string is not trimmed, it can end or start with spaces.

See also

Name Description
NameValueSeparator Value of the character used to separate name,value pairs