VpeFindTplFieldObject

<< Click to Display Table of Contents >>

Navigation:  Templates >

VpeFindTplFieldObject

Previous pageReturn to chapter overviewNext page

Searches for a given Field and returns the handle of the Field Object.

VpeHandle VpeFindTplFieldObject(

VpeHandle hTemplate,

LPCTSTR data_source_prefix,

LPCTSTR field_name,

)

VpeHandle hTemplate

Template Handle

LPCTSTR data_source_prefix

prefix of the Data Source, this is the unique name of a Data Source as defined in dycodoc

LPCTSTR field_name

name of the Data Source Field

Returns:

Handle of the Field Object, if the field was found

NULL otherwise

Remarks:

The function can be used to access Field Objects directly.

Example:

VpeHandle hField;

hField = VpeFindTplFieldObject(hTpl, "SomeTable", "Year");

if (hField)

 VpeSetFieldAsInteger(hField, 1982);

 

See Also:

"dycodoc Template Processing" in the Programmer's Manual