2021.1

Table Of Contents
page238
"Name(Integer Index)" on
page239
String Returns the name of the element stored at
the specified index.
Attributes and Fields methods
This topic lists the methods of the "Attributes" on page232 and "Fields" on page233 collection
container objects.
Note that the Add2() and the ItemByNameIndex() functions are only available with Fields. Fields
support multiple entries with the same name, which is forbidden with Attributes.
Add(const String Name, const String Value)
Adds a new element to the collection. If the specified name already exists in the collection, the
new value overwrites the previous one.
Parameters
Name
Name of the element to add. The name must adhere to this syntax rules: start with a letter,
followed by zero or more letters, numbers, underscore or dash. The name is not case-
sensitive.
Value
Value of the element. There is no restriction on the content, although binary is discouraged.
Exceptions
l EOleException The name is empty or invalid.
Add2(const String Name, const String Value, TAddFlags Flags, Integer Index (optional))
Fields only
Adds a new field to the collection. The behavior of the method when the specified name
already exists in the collection is determined by the Flags argument.
Page 235