TTemplateVars.VarByName¶
Returns the variable with the specified name
Declaration¶
Source position: fpweb.pp line 99
public
function TTemplateVars.VarByName(const AName: string) : TTemplateVar;
Description¶
Finds and returns the template variable with the given name. Raises an exception if no variable with the specified name is found.
Errors¶
Raises EFPWebError if the variable name is not found.
See also¶
| Name | Description |
|---|---|
| FindVar | Searches for a variable with the specified name |
| EFPWebError | Exception class for web-related errors |