<< Click to Display Table of Contents >> FindFieldObject |
Searches for a given Field and returns the Field object.
method TVPEField TVPETemplate.FindFieldObject(
string DataSourcePrefix,
string FieldName
)
string DataSourcePrefix
prefix of the Data Source, this is the unique name of a Data Source as defined in dycodoc
string FieldName
name of the Data Source Field
Returns:
a Field Object; if the field is not found the ObjectHandle of the returned object is null.
Remarks:
The function can be used to access Field Objects directly.
Example:
template.FindFieldObject(hTpl, "SomeTable", "Year").AsInteger = 1982;
"dycodoc Template Processing" in the Programmer's Manual
"Important Note for VPE-VCL Users" in the Programmer's Manual