Array.GetType

Syntax

GetType: ForeVariantType;

Description

The GetType method returns the type of data contained in the array.

Example

Sub UserProc;
Var
    Ar: Array[-5..1015Of Integer;
    Type, i, j: Integer;
Begin
    For i := -5 To 10 Do
        For j := 0 To 14 Do
            Ar[i, j] := i * j;
        End For;
    End For;
    Type := Ar.GetType;
End Sub UserProc;

After executing the example data is written to the Ar two-dimensional array, and the Type variable contains the number of the data type in the array, in this case, 3, which corresponds to integer data.

See also:

Array