UpdateDataUsingMDDataBuffer

Inserts an HsvMDDataBuffer or HsvMDDataBufferLite object’s cells into the corresponding cells of an application.

Syntax

<HsvData>.UpdateDataUsingMDDataBuffer pIUnkDataBuffer, lEnumUpdateMode, bAccumulateWithinBuffer

Argument

Description

pIUnkDataBuffer

HsvMDDataBuffer or HsvMDDataBufferLite object (ByVal). The object reference for the object.

lEnumUpdateMode

Long (ByVal). Determines the update mode. For more information and valid values, see Update Mode Constants.

bAccumulateWithinBuffer

Boolean (ByVal). Determines whether multiple values for the same cell within the HsvMDDataBuffer or HsvMDDataBufferLite object should be accumulated or allowed to overwrite each other. Pass TRUE to accumulate, FALSE to overwrite.

If the data buffer does not contain multiple values for the same cell, then this argument has no effect. In addition, this argument applies to line items and values, but not to descriptions — multiple descriptions always overwrite.

Note:

Data for system accounts never gets accumulated.

Example

The following example inserts an HsvMDDataBuffer object’s cells into an application. The arguments set UpdateDataUsingMDDataBuffer to the accumulate update mode and to accumulate within the HsvMDDataBuffer object’s cells.

m_cData.UpdateDataUsingMDDataBuffer cMDBuffer, _ 
HSV_DATA_UPDATE_ACCUMULATE, True