Description

The Icon representing this McDBType in the user interface.

Property type

A Variant value.  

Syntax

object.Icon([Index], [Format]) [= value]

The Icon Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBType.
IndexOptional. A mcDBIconType enumeration, as described in settings.

Which thumbnail to set or retrieve.

FormatOptional. A mcDBDataStyle enumeration, as described in settings.

The format the icon is to be retieved in. This parameter is ignored when assigning the value of this property. If an inapplicable value from this enum is passed in, mcdbActualObject is assumed.

valueA Variant value.

Settings

The settings for Index are:

ConstantValueDescription
 mcdbSmallIcon0
 mcdbLargeIcon1
 mcdbExpandedIcon2
 mcdbSelectedIcon3

The settings for Format are:

ConstantValueDescription
 mcdbNoData0
 mcdbDefaultStyle1
 mcdbStringData1

value as a string

 mcdbStorage2

returned object implements IStream

 mcdbStream3

returned object implements IStorage

 mcdbBytes4

raw byte stream of object

 mcdbProgId5

the ProgID of the stored object

 mcdbLongData6

value as a Long (for mcdbEnum attributes only)

 mcdbGlobalID7

A database-global identifier of the object

 mcdbActualObject16

An IDispatch to the object, can be Ored with mcdbStorage and mcdbStream

Remarks

Icons may be cleared by setting them to an Empty variant.

Exceptions

Error Value Description
E_INVALIDARG &H80070057 The value being assigned isn't value for the Format specified.
E_UNEXPECTED &H8001FFFF A framework error occured assigning or retrieving the Icon.