Unit 'fpWeb' Package
[Overview][Resource strings][Types][Classes][Index] [#fcl]

TTemplateVars.VarByName

Returns the variable with the specified name

Declaration

Source position: fpweb.pp line 99

public function TTemplateVars.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

FindVar

  

Searches for a variable with the specified name

EFPWebError

  

Exception class for web-related errors


Documentation generated on: Jan 27 2026