TatRoutineInfo.LocalVarCount Method
Returns the number of local variables declared in the routine, excluding input parameters.
Remarks
Input parameters are not counted. The function result variable (for function routines) is considered a local variable and is included in the count.
Syntax
Unit: atScript
function TatRoutineInfo.LocalVarCount: Integer;