Sign in Join
FPDoc Onlineexperiment

TTemplateParser.ReplaceTag function

Member of TTemplateParserpublicIn unit fpTemplate

Replace a tag with a value.

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.