TatVirtualMachine.GetArrayIndex Method
Returns the index value of a Delphi indexed property being accessed by the virtual machine.
Remarks
The desired dimension is specified by ADim.
For example, if the virtual machine is executing a get (or set) operation of an indexed property:
//script MyObject.MyIndexedProperty['customer', 5] := 10;
then calling GetArrayIndex(0) will return 'customer' and GetArrayIndex(1) will return 5.
Syntax
Unit: atScript
function TatVirtualMachine.GetArrayIndex(ADim: Integer): Variant; overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| ADim | Integer |