# Synopsis

PDX_MSGT ddf_GetUnionTypeByName(DDF_FLD *fld, char *member, int *union_type)

# Purpose

Get the union type by field name.

# Description

The union type (for use with mda_Set/GetUnionType) will be returned for member within fld. The fld argument must be of type DDF_UNION (i.e. DDF_STRUCT with the DDF_UNION_FLG flag set). The member argument specifies the member to be located in the union. If it is a fully qualified field name, only the last level will be used (i.e. no checking is done to make sure that the full scope includes the union specified by fld. If the member field is not found, an error of DDF_FIELD_NOT_FOUND will be returned.

# Input

## fld

The union field to search for member in

## member

The member within fld to be located

# Output

## union_type

The union type of member

# Return

DDF error code