Sign in Join
FPDoc Onlineexperiment

TTemplateVars.VarByName function

Member of TTemplateVarspublicIn unit FpWeb

Returns the variable with the specified name

Declaration

pascal
function VarByName(const AName: string): TTemplateVar

Arguments

AName

The name of the variable to find

Function result

The template variable with the specified name

Description

Finds and returns the template variable with the given name. Raises an exception if no variable with the specified name is found.

Errors

Raises EFPWebError if the variable name is not found.

See also

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