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

TTemplateApplication.VarAsInt

Returns the value of a configuration variable.

Declaration

Source position: line 0

public function TTemplateApplication.VarAsInt(

  const Name: string

):Integer;

function TTemplateApplication.VarAsInt(

  Index: Integer

):Integer;

function TTemplateApplication.VarAsInt(

  const Name: string;

  out Error: Boolean

):Integer;

function TTemplateApplication.VarAsInt(

  Index: Integer;

  out Error: Boolean

):Integer;

Description

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

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