Table of Contents

TatVirtualMachine.ReturnOutputArg Method

Sets the return value of the Delphi function currently being executed by the virtual machine.

Remarks

For example, if the method wrapper handles a function declared as function DoubleTheValue(AValue: integer): integer, the return value can be set as follows:

AMachine.ReturnOutputArg(AMachine.GetInputArgAsInteger(0) * 2);

Syntax

Unit: atScript

procedure TatVirtualMachine.ReturnOutputArg(AValue: Variant);

Parameters

<-> Parameter Type Description
AValue Variant

See also