UpdateEx

ACCPAC Common Controls

AccpacView.UpdateEx

Writes the contents of the existing logical record back to the database using the current key. This method is a network optimized version of Update. It allows the field values to be set to the view before the operation, and also returns the field values of the requested fields.

Sub UpdateEx(
PutFieldIDs As Variant,
PutFieldValues As Variant,
GetFieldIDs As Variant,
GetFieldValues As Variant)

Parameters

PutFieldIDs

[in] an array of field IDs representing the fields for which the values should first be modified before performing record fetching; the new values are specified in the PutFieldValues parameter

PutFieldValues

[in] an array of field values that should first be set to the view before performing record fetching; the values should appear in the array in the same order as the corresponding field IDs specified in the PutFieldIDs parameter

GetFieldIDs

[out] returns an array of field IDs representing the fields for which the values should be returned if a record is successfully retrieved

GetFieldValues

[out] returns an array of field values for the requested fields

Remarks

This method first calls BlkPut (on PutFieldValues), and then Update, and finally BlkGet (into GetFieldValues) to retrieve the field values.