Skip to content

ValueTypeOfArray

Include: Use System\Reflection.pkg

See Also: ArrayTypeOf, ArrayDimensionCount, ArrayDimentionSize, ValueTypeOfArray, ArrayInstanceSize

Purpose

Returns the DfType constant for elements stored by an array metadata handle.

Syntax

Function ValueTypeOfArray Global Handle hArray Returns DfType

Arguments

hArray : Array metadata handle.

Returns

A DfType constant for the array element type.

Behavior

Invalid or zero handles raise a DataFlex error.

Example

Integer[2][5] aiValues
Handle hArray
Integer iDims iSize
DfType eType

Get ArrayTypeOf aiValues to hArray
Get ArrayDimensionCount hArray to iDims
Get ArrayDimentionSize hArray 1 to iSize
Get ValueTypeOfArray hArray to eType