Sign in Join
FPDoc Onlineexperiment

TTemplateParser.GetParam function

Member of TTemplateParserpublicIn unit fpTemplate

Get a value for a parameter.

Declaration

pascal
function GetParam(const Key: string; out AValue: string): Boolean

Arguments

Key

Name of the parameter to get a value for.

AValue

The value for the parameter.

Function result

True if a value was found for the parameter.

Description

GetParam will get the value for the parameter with name Key and return it in AValue.

First, the Values list is consulted. If the parameter is not found there, the OnGetParam event is called. If the parameter is found, the function returns True, otherwise it returns False.

See also

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