2019.2

Table Of Contents
Note
In an Active Script environment, such as the Run Script task, you must use the numerical value,
since the TAddFlags type is not defined in an Active Script environment.
Index (optional)
Instance of the field to modify. This must be a numeric value equal to 0 or greater and can
only be used with the afReplace flag.
Exceptions
l EOleException The name is empty or invalid.
l EOleException The flags value is invalid.
l EOleException The name already exists and the afFail flag was specified.
l EOleException The index is invalid.
l EOleException An index is specified but afReplace is not specified.
CountByName(const String Name)
Returns the number of attributes or fields (integer) with the specified name.
Parameters
Name
Name of the element to count.
Returns
Number of occurrences of elements with the specified name.
Note that when counting an attribute by name, the only possible values are 1 and 0 because
attributes can only occur once.
Delete(Integer Index)
Delete a specified element from the collection.
Page 246