Table of Contents

TatVariablesInfo Class

A collection of TatVariableInfo objects holding information about variables declared in a script or routine.

Remarks

When associated with a routine, the collection contains all local variables, input parameters, and the function result variable (if the routine is a function). When associated with the script as a whole, it contains the global variables declared in the script.

Syntax

Unit: atScript

TatVariablesInfo = class(TOwnedCollection);

Methods

Name Description
Add Adds a new variable in the collection. Do not call this directly, it will not effectively change source code to declare a new variable. This is used by the compiler to add information in the collection.
FindByName Returns the TatVariableInfo object which corresponds to the variable which name is specified by Name. If no variable is found, FindByName returns nil.
IndexOf Returns the index of the variable which name is specified by AName. If no variable is found, IndexOf returns -1.

Properties

Name Description
Items[i] Provides indexed access to the TatVariableInfo objects in the collection.