TatVirtualMachine.SetInputArg Method
Sets the value of a by-reference parameter in the Delphi method currently being executed.
Remarks
AIndex specifies the parameter index (zero-based) and AValue contains the value to write back.
For example, if a method with signature MyMethod(AName, ATest: string; ACode: integer; var AStrResult: string) is registered in the scripter, the wrapper can update AStrResult as follows:
AMachine.SetInputArg(3, 'ok');
An exception is raised if the parameter at AIndex was not declared by reference.
Syntax
Unit: atScript
procedure TatVirtualMachine.SetInputArg(AIndex: Integer; const AValue: Variant);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AIndex | Integer | ||
| const | AValue | Variant |