ERRCODE TFormer_SetVarValue ( HTFORM  pInstance,
LPCSTR  szVarName,
LPCSTR  szVarValue 
)

Sets the value of a DataField.

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] szVarName The name of the DataField for which the value should be set.
[in] szVarValue The value for the given DataField.
Remarks:
Must be called for each DataField after a call to TFormer_NewRecord. All data is passed to TFORMer as string - TFORMer converts this string automatically into the specified data-type (see EVarType). If a validation rule is violated (see TFORMer Designer), an error-code is returned. If this function is not called for a DataField used in a FormLayout, then the content of this DataField depends on TFormer_SetReuseValues.

If you want to identify the DataFields which are available in a Project or FormLayout, please use the function TFormer_GetFirstProjectVarIt.
Note:
This function will test if
See also:
TFormer_SetReuseValues, TFormer_NewRecord.


© 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