Table of Contents

TatCustomScripter.AddEnumeration Method

Registers an enumerated type so that all its values are accessible by name from all scripts.

Remarks

Adds an enumerated type to be accessible from all scripts. All enumerated type items will be accessible from all scripts by their name, and the value will be the integer value of enumerated type item. Only enumerated types with RTTI can be included using this method. A better and more generic approach is to use AddConstant for each enumerated type.

AddConstant('alClient', alClient);

Syntax

Unit: atScript

procedure TatCustomScripter.AddEnumeration(ATypeInfo: PTypeInfo);

Parameters

<-> Parameter Type Description
ATypeInfo PTypeInfo

See also