texttemplateconverter ParamByName method
Return to Introduction  Previous page  Next page
Applies to
TextTemplateConverter component.  

Declaration
type  
  TacTemplateParameter = class(TCollectionItem)  
  published  
    property Name: String;  
    property Value: String;  
  end;  
 
function ParamByName(const ParamName: String): TacTemplateParameter;  

Description
The ParamByName method returns the pointer to TacTemplateParameter object where the Name property is equal to the ParamName parameter.  
 
You can use this method to quickly find the keyword and modify its Value.  
 
iiwarning Function returns NIL if the specified ParamName was not found in Params collection.  

Example
acTemplateConverter1.ParamByName('%keyword%').Value := 'New Value for Keyword';  

See also
Params property;  
ParamByValue and Convert methods.  
File not found.