AddTag Method

Adds a new tag pair to the Tags collection. New tag pairs are added at the end of the collection, so the index of a new tag is the previous value of Count.

Syntax

AddTag(ByVal Name as String, ByVal Value as Variant)

Parameters

Name

A string that identifies the new tag. For an unnamed tag, Name can be empty. If non-empty, it must be unique among the existing tags in the collection.

Value

Any Variant value.

Remarks

Unnamed tags can be created by passing an empty string for Name. Tags created this way must be accessed by index. All named tag pairs must be given unique names.

Applies to   Choice object, ChoiceFilter object