TatVariableInfo.VarIndex Method
Returns the position of the variable in the execution stack, relative to the current stack base.
Remarks
Local variables have a positive index from the stack base; input parameters have negative values. This is used internally by the compiler and you do not normally need to call it.
Syntax
Unit: atScript
function TatVariableInfo.VarIndex: Integer;