| 
    << Click to Display Table of Contents >> VpeSetTplFieldAsString | 
    
    
     ![]() ![]()  
     | 
  
Sets the value of a Field as string.
int VpeSetTplFieldAsString(
VpeHandle hTemplate,
LPCSTR data_source_prefix,
LPCSTR field_name,
LPCSTR value
)
VpeHandle hTemplate
Template Handle
LPCSTR data_source_prefix
prefix of the Data Source, this is the unique name of a Data Source as defined in dycodoc
LPCSTR field_name
name of the Data Source Field
LPCSTR value
pointer to a buffer that holds the string that shall be assigned to the Field
Returns:
Value  | 
Description  | 
True  | 
if the field was found and its value could be set  | 
False  | 
otherwise  | 
Example:
VpeSetTplFieldAsString(hTpl, "Sample2", "Recipient:Company", "IDEAL Software");
"dycodoc Template Processing" in the Programmer's Manual