# Removing comma from text input?

**URL:** <https://forum.kirupa.com/t/removing-comma-from-text-input/218665>\
**Category:** flash\
**Created:** [March 9, 2007, 3:20pm UTC](https://forum.kirupa.com/t/removing-comma-from-text-input/218665 "2007-03-09T15:20:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fnordboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fnordboy/32/3425_2.png) [@fnordboy](https://forum.kirupa.com/u/fnordboy)\
**Post date:** [March 9, 2007, 3:20pm UTC](https://forum.kirupa.com/t/removing-comma-from-text-input/218665/1 "2007-03-09T15:20:22Z")

</div>

I have a text field where the user can input their salary, the only problem I have is that if they put a comma in it will break the calculations, so I need to be able to take the amount they give and then rip out the comma and have it just be the full number so I can do the necessary calculations with it.

I have everything working fine otherwise, just need to fix this _hopefully_ minor issue.

I am working in Flash 8, but am exporting out with AS 1.0 due to limitations in the base movie file (that I did not build).

Thanks in advance.:}
