Content property

For IERUDBCell or IERUCustomField, sets or returns the contents of a Database Cell or Custom field.

For IERUDashboardCell, returns but does not set the contents of a Dashboard Cell.

 

Syntax


C++

HRESULT get_Content(VARIANT* pContent)

HRESULT put_Content(VARIANT myContent)

Scripting languages

Value = object.Content

object.Content = Value

Remarks


Content is the default property for both IERUDBCell and IERUCustomField.

If a Custom Field has not yet been assigned a value, this property's value is undefined. You can check for this condition by first accessing the HasValue property.

After assigning the Content property of a Database Cell or Custom Field, you must call Update on the Database Row or Custom Field Set to apply the changes to the server.

Certain columns types can be cleared by setting cell value to VARIANT EMPTY.  You cannot use EMPTY for the following column types: attachments, comments, history, or roomid.

The following table lists the data type stored in VARIANT for each type of data that a Database Cell or Custom Field can contain:

Cell or Field Data Type

Data Type Stored in VARIABLE

Plain Text

BSTR

HTML

BSTR

Number

BSTR

Date

DATE

Boolean

VARIANT_BOOL

Drop Down List

BSTR

Members

IERUMemberSet (The Member Set can only contain Members of the Room that contains the Cell or Item. Returned Member Sets do not include Members who have been removed from the Room.)

Keywords (single only)

String

Multiple Keywords (allow multiple keywords)

String, with comma-separated keywords or SAFEARRAY (Always returned as SAFEARRAY.)

Home

Applies to

IERUDBCell

IERUDashboardCell

IERUCustomField


See also

Update Method

DataType Property

IERUMemberSet