BlkGet

ACCPAC Common Controls

AccpacView.BlkGet

Performs a block get of field values of the specified array of field IDs, and returns an array of field values.

Sub BlkGet(
FieldIDs As Variant,
pValues As Variant)

Parameters

FieldIDs

[in] an array of 1-based field IDs (array of Longs), which represents the fields whose values should be retrieved

pValues

[out] returns an array of field values associated with the IDs in FieldIDs

Remarks

This method can be used in place of several BlkGet() calls to minimize the number of view calls.

Example

The following example reads the BANK, NAME, and MULTICUR fields of the view BK0001 and stores them in the variable "Values".
 

Dim BKACCT1header As AccpacCOMAPI.AccpacView

mDBLinkCmpRW.OpenView "BK0001", BKACCT1header

Dim Values As Variant

BKACCT1header.BlkGet Array(1, 2, 17), Values