RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.ExtractName Method

Returns the name portion of a string that is a name value pair.

Pascal
function ExtractName(const S: string): string;
C++
__fastcall AnsiString ExtractName(const AnsiString S);

TStrings calls ExtractName internally to parse strings that are name-value pairs and return the name portion. 

S is the string to parse. 

If S is a name-value pair, ExtractName returns the name portion. Otherwise, ExtractName returns an empty string. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!