# Changing a number

**URL:** <https://forum.inductiveautomation.com/t/changing-a-number/5934>\
**Category:** Ignition\
**Created:** [February 27, 2013, 7:52pm UTC](https://forum.inductiveautomation.com/t/changing-a-number/5934 "2013-02-27T19:52:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jcam](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@Jcam](https://forum.inductiveautomation.com/u/Jcam)\
**Post date:** [February 27, 2013, 7:52pm UTC](https://forum.inductiveautomation.com/t/changing-a-number/5934/1 "2013-02-27T19:52:22Z")

</div>

If I scanned a barcode into a text field and it read: 12345-67 is there a way to make it show up as 1234567

Is there a way to remove the “dash”

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 27, 2013, 9:03pm UTC](https://forum.inductiveautomation.com/t/changing-a-number/5934/2 "2013-02-27T21:03:35Z")

</div>

Sure, you can add a propertyChange event handler to the text field component like this:`if event.propertyName == "text":
    value = event.newValue
    value = value.replace("-", "")
    def doLater(event=event, value=value):
        event.source.text = value
    system.util.invokeLater(doLater)`
