VpeSetTplFieldAsString

<< Click to Display Table of Contents >>

Navigation:  Templates >

VpeSetTplFieldAsString

Previous pageReturn to chapter overviewNext page

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");

 

See Also:

"dycodoc Template Processing" in the Programmer's Manual