TCodeMemberMethod.IndexOfVar Method
Returns the index of a local variable by name.
Syntax
Unit: Bcl.Code.MetaClasses
function TCodeMemberMethod.IndexOfVar(const AName: string): Integer;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AName | string | The variable name to find (case-insensitive). |
Returns
The zero-based index of the variable, or -1 if not found.