StructTypeOfStruct¶
Include: Use System\Reflection.pkg
See Also: StructTypeOf, StructMemberType, StructTypeOfArray
Purpose¶
Returns the nested struct metadata handle for a struct member.
Syntax¶
Function StructTypeOfStruct Global Handle hStruct Integer iIndex Returns Handle
Arguments¶
hStruct
: Struct metadata handle.
iIndex
: Zero-based member index.
Returns¶
A struct metadata Handle for the nested struct member.
Behavior¶
The member at iIndex must be a struct. Non-struct members, invalid handles, and invalid indexes raise a DataFlex error.
Example¶
Struct tAddress
String sCity
End_Struct
Struct tCustomer
Integer iId
tAddress Address
End_Struct
tCustomer tCustomerValue
Handle hStruct hAddress
Get StructTypeOf tCustomerValue to hStruct
Get StructTypeOfStruct hStruct 1 to hAddress