DelphiScript - Unit Structure

Applies to TestComplete 15.20, last modified on January 19, 2022

With the exception of the Uses clause, DelphiScript does not recognize any element of unit structure. Units are simply collections of scripts, any of which may be called by the user, by a script in another unit, or by a script in the current unit. The following keywords have no effect:

finalization
implementation

initialization
program

interface
unit

The finalization and initialization keywords cause an error; the others are simply ignored.

The uses clause is adopted from Object Pascal, as it is necessary to allow external calls to be resolved (in other words, to allow the interpreter to jump from the current unit to another one, from which a script is being called in the current one). See Calling Routines and Variables Declared in Another Unit. The in directive in uses is ignored.

See Also

DelphiScript Description

Highlight search results