Description
A data string or BLOB associated with this McDBNode.
-
Property type
-
A Variant value.
-
Syntax
-
object.Data([Format]) [= value]
The Data Property syntax has these parts: |
| object | An expression evaluating to an object of type McDBNode. | | Format | Optional. A mcDBDataStyle enumeration, as described in settings. The format the data is to be retieved in. This parameter is ignored when assigning the value of this property. If an inapplicable value from this parameter is passed in, mcdbActualObject is used.
| | value | A Variant value. | Settings The settings for Format are:
 | mcdbNoData | 0 | |
 | mcdbDefaultStyle | 1 | |
 | mcdbStringData | 1 |
value as a string
|
 | mcdbStorage | 2 |
returned object implements IStream
|
 | mcdbStream | 3 |
returned object implements IStorage
|
 | mcdbBytes | 4 |
raw byte stream of object
|
 | mcdbProgId | 5 |
the ProgID of the stored object
|
 | mcdbLongData | 6 |
value as a Long (for mcdbEnum attributes only)
|
 | mcdbGlobalID | 7 |
A database-global identifier of the object
|
 | mcdbActualObject | 16 |
An IDispatch to the object, can be Ored with mcdbStorage and mcdbStream
|
Remarks
Since this property stores either a string or a BLOB, it can be a convenient place to store information that may be stored in both representations (e.g. a file, which may be represented by a string filepath or a BLOB of the bytes in the file). Since, McImage objects can be represented similarly, Data can be a convenient place to store images. (see the Example)
Exceptions
Notes
Not all mcDBDataStyle values are valid for all possible storage formats. For example: mcdbBytes will only work for data stored as a byte array or when an object supports the COM IPersistStream interface.
|