DexObject_AddProperty()

Examples


The DexObject_AddProperty() function adds a property to a callback object.

Syntax

DexObject_AddProperty(callback_object, name, type {, dispatch_id})

Parameters

callback_object – A reference to the callback object to which a property is being added.

name – A string specifying the name for the property being added to the callback. Each property in the callback object must have a unique name.

type – An integer that specifies the property type. The following values are valid types.

[spacer]

DATATYPE_BOOLEAN

DATATYPE_INTEGER

DATATYPE_CURRENCY

DATATYPE_LONG_INTEGER

DATATYPE_VCURRENCY

DATATYPE_REFERENCE

DATATYPE_DATE

DATATYPE_STRING

DATATYPE_DATETIME

DATATYPE_TIME


dispatch_id - An optional long integer that specifies the identifier for the property. It is typically represented as a hexadecimal value.

Return value

A boolean indicating whether the property was added. True indicates that the property was added, while false indicates that it was not.

Comments

If you are creating a callback object to handle events from another application, be sure the property has exactly the same name as the corresponding property in the COM interface for that application. The name is case-sensitive.


Documentation Feedback