Add Method (Attributes Object)

Object: Attributes Object

Prerequisites: None

Adds an attribute to the Attributes object.

Note:

The isOat argument for this method is deprecated; however, it is still required. A runtime error will result if you do not provide the argument.

Usage

Attributes.Add (ByVal Name As String, ByVal Value As String, ByVal NameVisible As Boolean, ByVal ValueVisible As Boolean, ByVal isOat As Boolean)

Arguments

Name

String. A string that represents the attribute object name.

Value

String. A string that represents the attribute object value.

NameVisible

Boolean. A Boolean value that represents the name visibility setting. If True, the attribute name is visible; if False, the attribute name is not visible.

ValueVisible

Boolean. A Boolean value that represents the value visibility setting. If True, the attribute value is visible; if False, the attribute value is not visible.

isOat

(Deprecated) A Boolean value that represents whether the attribute has an instance value (formerly referred to as an OAT). If True, the attribute has an instance value; if False, the attribute does not have an instance value. This argument is deprecated, but still required.

Examples

' Add a property 
component.Attributes.Add "TEST", "SCRIPTING", TRUE, TRUE, TRUE