TFormer_SetReuseValues

Provide Data

Definition

ERRCODE TFormer_SetReuseValues(HTFORM pInstance, BOOL bReuse);

Contract

Selects if DataField values should be reused in consecutive Records.

  • If set to TRUE, then the value of a DataField will be preserved between Records.
    The last value will be reused in consecutive Records until a new value is set. This allows you to omit TFormer_SetVarValue for a DataField if the value should be the same as in the previous Record.

  • If set to FALSE (which is the default), then all DataFields are set to "" (empty string) or 0 (depending on the DataFieldType) between Records. It is recommended to set all DataFields for each Record.

Returns

ErrOk (0) in case of success, non-zero if an error occurred

Parameters

Parameter / typeDescription
pInstanceHTFORM


The TFORMer instance provided by a previous call to TFormer_Init

bReuseBOOL


Should data be reused for each Record?

Search documentation

Search in
More scopes
Additional scopes

All contents