Array.GetType

Syntax

GetType: ForeVariantType;

Description

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

Example

Sub Main;

Var

Ar: Array[-5..10, 15] Of 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 Main;

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

See also:

Array