Table of Contents

TatMethod.SetVarArgs Method

Specifies which input parameters must be passed by reference to the method.

Remarks

argi must contain an array of zero-based parameter indices. For example, if you want to register the following Delphi method in the scripter:

procedure MyDelphiMethod(var A, B: integer; C: string; var D: string);

you can specify which parameters are by-reference as follows:

with DefineMethod('MyDelphiMethod', 4, tkNone, nil, MyDelphiMethodProc, 0) do SetVarArgs([0, 1, 3]); //First, second and fourth parameters are passed by reference

Syntax

Unit: atScript

procedure TatMethod.SetVarArgs(argi: );

Parameters

<-> Parameter Type Description
argi

See also