<< Click to Display Table of Contents >> FindControl |
Searches by name the VPE Object (a control) which was inserted with DumpTemplate() / DumpTemplatePage() into the current document. Names can only assigned to objects using dycodoc and templates.
This method belongs to the TVPETemplate Object!
Use a Template Object of a template which has already been dumped into the VPE Document.
method TVPEObject VPE.FindControl(
string Name
)
string Name
the name of the control as assigned in dycodoc
Returns:
Returns the VPE Object of the control with the given name.
If no control with the given name was found, the ObjectHandle of the returned object is null.
Example:
// Retrieves the Control Handle of the object named "Street"
// and disables the control
objTemplate.FindControl("Street").ControlEnabled = False
"Interactive Documents" in the Programmer's Manual.