# xc (center) processing code

The xc processing code centers the input
string in a field of spaces.

| System Processors | Select, Update, List |
| --- | --- |
| Code Type | Attribute Defining |
| Dictionary Attributes | Output Conversion |

## Syntax

```
xc{column.width}
```

## Parameter(s)

| column.width | If specified, the xc code centers the text within a field of column-width characters. If no column width is specified, then the processing code looks forward to the attribute length specifier in the attribute-defining item. |
| --- | --- |
Note: If this processing code is used from BASIC or FlashBASIC,
then a column width specifier is required. For compatibility reasons,
a subvalue mark is allowed before the column width.

## See also

- [input-conversion](https://d3codex.com/attributedefiningitem/input-conversion/)
- [output-conversion](https://d3codex.com/attributedefiningitem/output-conversion/)
- [Processing codes overview](https://d3codex.com/processingcodes/processing-codes-overview/)

---
Source: https://d3codex.com/processingcodes/xc-center-processing-code/ - part of the D3Codex reference.
