Skip to content

StructTypeOfArray

Include: Use System\Reflection.pkg

See Also: StructTypeOf, StructMemberType, StructTypeOfStruct

Purpose

Returns the array metadata handle for a struct member that is an array.

Syntax

Function StructTypeOfArray Global Handle hStruct Integer iIndex Returns Handle

Arguments

hStruct : Struct metadata handle.

iIndex : Zero-based member index.

Returns

An array metadata Handle for the nested array member.

Behavior

The member at iIndex must be an array. Non-array members, invalid handles, and invalid indexes raise a DataFlex error.

Example

Struct tCustomer
    Integer iId
    String[] asAliases
End_Struct

tCustomer tCustomerValue
Handle hStruct hAliases

Get StructTypeOf tCustomerValue to hStruct
Get StructTypeOfArray hStruct 1 to hAliases