Programming Reference Manual
 
Syntax
 
Count = object.Add( Label, Value[, Unique])
 
Description
Number of objects in the collection.
 
Part
Description
object
Evaluates to a HttpHeaderFields object.
Label
HttpLabelConstants. Specifies the symbolic name for the header label being added. Use httpNull if Value includes the label.
Value
String. Value to be added to the collection.
Unique
Optional Boolean. Indicates the header field should replace any existing header fields with the same label. The default value is False.
Count
Long. Number of strings added to the collection.
 

Remarks

A header field is a label, followed by a colon, followed by a space, followed by one or more values separated by semicolons.
This method allows you to add header fields in the following two ways:
  • If Label is not httpNull, then Value is prepended with the string representation of the specified Label and a space before adding it to the collection.
  • If Label is httpNull, then Value must contain a complete header field, including the label.
 

Error Codes

The Clear method may generate the following error codes (refer to the ErrorConstants topic for a complete list of error codes):
  • ptInvalidParam1
  • ptNoMemory 
See Also