ERRCODE TFormer_SetReuseValues ( HTFORM  pInstance,
BOOL  bReuse 
)

Selects if DataField-values should be reused in consecutive Records.

Returns:
- ErrOk (0) in case of success
- Non-zero if error occurred
Parameters:
[in] pInstance The TFORMer-Instance provided by a previous call to TFormer_Init.
[in] bReuse Should data be reused for each record?
Remarks:
  • 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.
See also:
TFormer_NewRecord, TFormer_SetVarValue.


© 2006-2009 - all rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Sep 2 16:01:09 2009 for TFORMer Runtime DLL/Shared Library with doxygen 1.5.8