Description
Create a new McDBAttributeType instance in this collection.
-
Return Type
-
A McDBAttributeType object.
-
Syntax
-
object.Add (Name, Type, [DefaultValue], [Owner], [EnumStrings], [EnumValues])
The Add Method syntax has these parts: |
| object | An expression evaluating to an object of type McDBAttributeTypes. | | Name | Required. A String value. The name of the McDBAttributeType to add/create in this collection. The value of this parameter must not contain period (.) characters, and must be unique within this collection. That is, there must not already be an element with this Name in the owning McDBType.Attributes collection.
| | Type | Required. A mcDBAtbType enumeration, as described in settings. | | DefaultValue | Optional. A Variant value. The default value McDBAttributes of the McDBAttributeType created from this call will have, until an explicit value is assigned. Using this parameter is simply a shortcut to assigning the McDBAttributeType.DefaultValue property after this call.
| | Owner | Optional. A String value. The name of the module handling the attribute type. If this parameter is not specified, the name of this module ("McDBLib") will be used, which is appropriate in most cases anyway.
| | EnumStrings | Optional. A Variant value. A Variant containing an array of strings that will be used as the list of discrete string choices for the new McDBAttributeType. This parameter is only used if Type is mcdbEnum, and must be specified with EnumValues.
| | EnumValues | Optional. A Variant value. A Variant containing an array of [long] numbers that will be used as the list of numeric values corresponding to the string choices in EnumStrings. This parameter is only used if Type is mcdbEnum, and must be specified with EnumStrings.
| Settings The settings for Type are:
 | mcdbEmpty | 1 |
No value: not valid for defining an McDBAttributeType
|
 | mcdbOther | 2 |
A value handled by a module other than McDBLib
|
 | mcdbLong | 3 |
A single, integral Long value
|
 | mcdbBlob | 4 |
An array of Byte values
|
 | mcdbDate | 5 |
A single Date value
|
 | mcdbString | 6 |
A single String value
|
 | mcdbDouble | 7 |
A single, real numeric (Double) value
|
 | mcdbObject | 8 |
An OLE object
|
 | mcdbEnum | 9 |
A discrete, pre-defined String Choice value
|
 | mcdbNodeAtb | 10 |
A McDBNode, having its own McDBType, but no location in the McDBNode hierarchy
|
 | mcdbArrayDouble | 11 |
An array of real, numeric (Double) values
|
 | mcdbArrayLong | 12 |
An array of integral Long values
|
 | mcdbArrayString | 13 |
An array of String values
|
Exceptions
|