Internet Direct (Indy)
Home
PreviousUpNext
TIdHeaderList.Values Property

Allows access to header values by name.

Pascal
property Values [const Name: string]: string;
Parameters 
Description 
Name 
Header name to be retrieved. Return Value:
 
String 
Header value for the header name. 

Values is an Indexed String property that works like Borland's TStrings.Values except it uses the delimiter defined in NameValueSeparator as the seperator between the header name and value. 

Case sensitivity is set with the CaseSensitive property, and if UnfoldLines is True, lines will be unfolded. 

Thus if UnfoldLines is set to true, the value in following Example for Values['Subject'] would be "This is a line which is folded. This is on another line." If UnfoldLines is set to False, the Value['Subject'] would equal = "This is a line which is folded." 

 

Subject:  This is a line which is folded.
 This is on another line.
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.