TextString Property (Attribute Object)

Scope: Schematic editor

Object: Attribute Object

Access: Read/Write

Prerequisites: None

Returns or sets the string associated with an attribute.

Usage

Attribute.TextString = String

Arguments

None

Return Values

String. A string that contains the value of the attribute.

This string is of the form NAME=VALUE. The Name Property (Attribute Object) specifies the NAME portion, while the Value Property (Attribute Object) specifies the VALUE portion. TextString specifies the full specification. If the attribute has an instance (OAT) value, setting or referencing this property affects that value.

Examples

MsgBox attr.TextString ' Prints NAME=VALUE 
MsgBox attr.Name ' Prints NAME 
MsgBox attr.Value ' Prints VALUE 
 
' Set attribute's NAME to REFDES and VALUE (or instance value) to U7 
attr.TextString = "REFDES=U7"