[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'UPasConf' (#Pkg)

TTemplateApplication.VarAsBool

Returns the value of a configuration variable.

Declaration

Source position: line 0

public function TTemplateApplication.VarAsBool(

  const Name: string

):Boolean;

function TTemplateApplication.VarAsBool(

  Index: Integer

):Boolean;

function TTemplateApplication.VarAsBool(

  const Name: string;

  out Error: Boolean

):Boolean;

function TTemplateApplication.VarAsBool(

  Index: Integer;

  out Error: Boolean

):Boolean;

Description

Returns as boolean the value of the configuration variable denoted by Name or Index.

If the value can't be casted to boolean or the variable does not exists: