# mx (mask ASCII to hexadecimal) processing code

The mx processing code converts all
ASCII characters in a given value to their corresponding ASCII-hexadecimal
equivalent. The characters are converted one at a time to 2-digit
hexadecimal numbers. The my code is the inverse of the mx code.

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

## Syntax

```
mx
```

## Example(s)

| Data | Conversion | Sample Output |
| --- | --- | --- |
| 123 | mx | 313233 |
| abc | mx | 616263 |
| a dog | mx | 6120646F67 |

## See also

- [iconv() function](https://d3codex.com/pickbasic-flashbasic/iconv-function/)
- [my (mask hexadecimal to ASCII) processing code](https://d3codex.com/processingcodes/my-mask-hexadecimal-to-ascii-processing-code/)
- [output-conversion](https://d3codex.com/attributedefiningitem/output-conversion/)
- [Processing codes overview](https://d3codex.com/processingcodes/processing-codes-overview/)
- [Processing codes](https://d3codex.com/processingcodes/processing-codes/)

---
Source: https://d3codex.com/processingcodes/mx-mask-ascii-to-hexadecimal-processing-code/ - part of the D3Codex reference.
