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

TTemplateApplication.VarAsReal

Returns the value of a configuration variable.

Declaration

Source position: line 0

public function TTemplateApplication.VarAsReal(

  const Name: string

):Real;

function TTemplateApplication.VarAsReal(

  Index: Integer

):Real;

function TTemplateApplication.VarAsReal(

  const Name: string;

  out Error: Boolean

):Real;

function TTemplateApplication.VarAsReal(

  Index: Integer;

  out Error: Boolean

):Real;

Description

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

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