# Passing a hexadecimal - Data type?

**URL:** https://forum.kirupa.com/t/passing-a-hexadecimal-data-type/268654
**Category:** flash
**Created:** [August 16, 2008, 8:34pm UTC](https://forum.kirupa.com/t/passing-a-hexadecimal-data-type/268654 "2008-08-16T20:34:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)
#### Post date: [August 16, 2008, 8:34pm UTC](https://forum.kirupa.com/t/passing-a-hexadecimal-data-type/268654/1 "2008-08-16T20:34:46Z")

</div>

I’m trying to pass a hexadecimal number into a function so that it can be used to format a text field. Does anyone know the correct syntax/data type to use here?

```auto

package {
    public function process(answerSprites:DisplayObjectContainer,hexCode:uint):void {
        txtfield.setTextFormat(hexCode);
        // 1067: Implicit coercion of a value of type uint to an unrelated type flash.text:TextFormat.
    }

    // Another line of code calls process()...
    process(answerSprites,0x85BB3D);
}

```
