Description A simplified method of setting an attribute value.
-
Return Type
-
A Boolean value. A Boolean with True when the attribute value is successfully set. Failure Returns False. Failure conditions: * bad parameter * security problem
-
Syntax
-
object.SetAttribute (pdbnode, sName, eDBATBType, vValue, sOwner, [sLocalized], [lFlagsToOr], [sFmt], [bNewNameWhenExists])
The SetAttribute Method syntax has these parts: |
| object | An expression evaluating to an object of type McDataManager. | | pdbnode | Required. A McDBNode object. The McDBNode reference that owns the McDBAttributes collection. | | sName | Required. A String value. McDBType.Name of the attribute value to be stored. | | eDBATBType | Required. A mcDBAtbType enumeration, as described in settings. McDBType.Type of the attribute value to be stored. | | vValue | Required. A Variant value. McDBType.Description to set when a custom attribute is created. | | sOwner | Required. A String value. McDBType.Owner to set when a custom attribute is created. | | sLocalized | Optional. A String value. McDBType.Descxription to set when a custom attribute is created. | | lFlagsToOr | Optional. A Long value. McDBType.Flags will be Ored with the given value when a custom attribute is created. | | sFmt | Optional. A String value. McDBType.Format to set when a custom attribute is created. | | bNewNameWhenExists | Optional. A Boolean value. When an attribute actually exists on pdbnode -- do not overwrite. | Settings The settings for eDBATBType 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
|
|