Description

The value to be assumed by attribute instances of this McDBAttributeType that do not have an explicit value assigned.

Property type

A Variant value.  

Syntax

object.DefaultValue [= value]

The DefaultValue Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBAttributeType.
valueA Variant value.

Remarks

McDBAttributeType objects of any Type except mcdbNodeAtb may be associated with a default value for attributes not explicitly set on a particular McDBNode instance.

Exceptions

Error Value Description
E_INVALIDARG &H80070057 The value being assigned as the Default Value is incompatible with Type.
E_UNEXPECTED &H8001FFFF A framework error occurred while accessing the name.
E_ACCESSDENIED &H80070005 The McDBDatabase.LoggedUser does not have McDBRightsOwner.AttributeTypeAdminRight privileges.
E_NOTIMPL &H80004001 Type is mcdbOther, and its Default Value cannot be manipulated or represented by McDBLib.

Notes

An existing default value is cleared by assigning an empty variant to this property.