TrkItemTypeGroupAttrib.DefaultValue (property)

property DefaultValue
Syntax: Boolean = object.DefaultValue
object.DefaultValue = Boolean
Description:
Represents the default value of the Item type group attribute. The Schema Generator uses the value set by this method to update a particular field in the Group Attributes table when no value was supplied for that field while inserting a record into that table.

It can also be used to determine the current default value for a column.

Example 1:

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

Example 2:

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