Unit 'fpTemplate' Package
[Overview][Constants][Types][Classes][Variables][Index] [#fcl]

TTemplateParser.ReplaceTag

Replace a tag with a value.

Declaration

Source position: fptemplate.pp line 83

public function TTemplateParser.ReplaceTag(

  const Key: string;

  TagParams: TStringList;

  out ReplaceWith: string

):Boolean;

Arguments

Key

  

Name of the tag to replace.

TagParams

  

Parameters for the tag.

ReplaceWith

  

The replacement value for the tag.

Function result

True if the tag was replaced.

Description

ReplaceTag will replace the tag with name Key and parameters TagParams with the value in ReplaceWith.

The function returns True if the tag was replaced, False otherwise. A replacement will happen if the OnReplaceTag event is assigned.

See also

OnReplaceTag


Documentation generated on: Dec 15 2025