Table of Contents

TatCustomScripter.AddFunction Method

Deprecated. Use DefineMethod instead.

Remarks

Adds a new user-defined function to the scripter component. The Input argument for TBuiltInProc is always a variant array of variants. Because atPascal allows free parameter passing, the implemented function should always check the length and types of input arguments. The Output variant may be a single variant value or a variant array of variants. Although atPascal natively works with strings and floating-point values, other variant types such as varInteger, varDate, varDouble, and varVariant are also supported.

Syntax

Unit: atScript

procedure TatCustomScripter.AddFunction(Name: string; Address: TBuiltInProc);

Parameters

<-> Parameter Type Description
Name string
Address TBuiltInProc

See also