# SelectUnionMember

## Description

Choose the representation of a union member. This command tells IDA how to display references to a union from the current cursor location.

Example: Suppose we have the following union:

```
        xxx     union
        a       db ?
        b       dw ?
        c       dd ?
        ends   xxx
        dloc    xxx ?
```

Normally, IDA displays references to "dloc" like this:

```
        mov     al,  byte ptr dloc
        mov     eax, word ptr dloc
```

After using this command, IDA can display the union members:

```
        mov     al,  dloc.b
        mov     eax, dloc.d 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hex-rays.com/ida-actions/selectunionmember.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
