Routines (alphabetical) > Routines: H > HDF5 Routines > H5T_GET_MEMBER_INDEX

# H5T_GET_MEMBER_INDEX

The H5T_GET_MEMBER_INDEX function retrieves the index of a specified member of a compound or enumeration datatype.

## Syntax

Result = H5T_GET_MEMBER_INDEX(Datatype_id, Field_name)

## Return Value

Returns an integer containing the index of the specified datatype member.

## Arguments

### Datatype_id

A long integer containing the identifier of the compound or enumeration datatype.

### Field_name

A string containing the name of the field or element for which the index will be returned.

## Keywords

None

## Version History

6.3 | Introduced

## See Also

H5T_ENUM_CREATE, H5T_GET_MEMBER_VALUE