Sign in Join
FPDoc Onlineexperiment

TTemplateVars.IndexOfVar function

Member of TTemplateVarspublicIn unit FpWeb

Returns the index of the variable with the specified name

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.