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

TTemplateApplication.VarAsIntDef

Returns the value of a configuration variable or a default value.

Declaration

Source position: line 0

public function TTemplateApplication.VarAsIntDef(

  const Name: string;

  Def: Integer

):Integer;

function TTemplateApplication.VarAsIntDef(

  Index: Integer;

  Def: Integer

):Integer;

Description

If conversion is possible and if configuration variable, denoted by Name or Index, exists then returns its value as integer. Otherwise returns Def.