# u31ad user exit

User exit u31ad returns the current
port number.

## Syntax

```
u31ad
code.number
```

## Parameter(s)

| code.number | When following the user exit, the code number specifies where the value is to be placed. |
| --- | --- |
| a | Outputs to the alternative output buffer. |
| p | Outputs to the primary input buffer. |
| s | Outputs to the current output buffer. |
| t | Outputs to the terminal. |

## See also

- [Port number](https://d3codex.com/definitions/port-number/)
- [PROC processor user exits](https://d3codex.com/proc/proc-processor-user-exits/)
- [u50bb user exit](https://d3codex.com/pickbasic-flashbasic/u50bb-user-exit/)

---
Source: https://d3codex.com/proc/u31ad-user-exit/ - part of the D3Codex reference.
