texttemplateconverter ParamByValue method
Return to Introduction  Previous page 
Applies to
TextTemplateConverter component.  

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

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

Example
acTemplateConverter1.ParamByValue('The Value').Name := '%another_keyword%';  

See also
Params property;  
ParamByName and Convert methods.  
sIU/QH/K+!