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

TTemplateVars.IndexOfVar

Returns the index of the variable with the specified name

Declaration

Source position: fpweb.pp line 98

public function TTemplateVars.IndexOfVar(

  const AName: string

):Integer;

Arguments

AName

  

The name of the variable to search for

Function result

The index of the variable, or -1 if not found

Description

Searches for a template variable with the given name and returns its index in the collection. Returns -1 if no variable with the specified name is found.

See also

VarByName

  

Returns the variable with the specified name

FindVar

  

Searches for a variable with the specified name


Documentation generated on: Jan 27 2026