TrkItemTypeGroupAttrib.Uniquepart (property)

property Uniquepart
Syntax: Boolean = object.Uniquepart
object.Uniquepart = Boolean
Description:
This property determines whether the Item type group attribute is a part of a composite key. When the values from a combination of columns are used to determine the uniqueness of a row (composite key), this property of a column helps Schema Generator determine if the column is a part of such composite key.

Example 1:

Dim oTrkItemTypeGroup As Object
Dim oTrkItemTypeGroupAttrib As Object
Set oTrkItemTypeGroup = oTrkItemType.TrkItemTypeGroups.Item("Body IDs")
Set oTrkItemTypeGroupAttrib = oTrkItemTypeGroup.TrkItemTypeGroupAttribs.Item(1)
MsgBox "Uniquepart:" & oTrkItemTypeGroupAttrib.Uniquepart
...
...
...

Example 2:

Dim oTrkItemTypeGroupAttrib As Object
...
Set oTrkItemTypeGroupAttrib = oTADBRoot.TrkItemTypeGroupAttribs.Item("BODY COMPONENT","Body IDs")
MsgBox "Uniquepart:" & oTrkItemTypeGroupAttrib.Uniquepart
...
...
...