# TextInput toUpperCase

**URL:** <https://forum.kirupa.com/t/textinput-touppercase/201485>\
**Category:** flash\
**Created:** [September 21, 2006, 6:51pm UTC](https://forum.kirupa.com/t/textinput-touppercase/201485 "2006-09-21T18:51:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brisa](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@Brisa](https://forum.kirupa.com/u/Brisa)\
**Post date:** [September 21, 2006, 6:51pm UTC](https://forum.kirupa.com/t/textinput-touppercase/201485/1 "2006-09-21T18:51:57Z")

</div>

Hi,

I looked everywhere and couldn’t find. Is there a way to convert the display of the TextInput to upper case?

Like this:

type h ===\> displays H  
type e ===\> displays HE  
type l ===\> displays HEL  
type l ===\> displays HELL  
type o ===\> displays HELLO

I tried using the following, it traces but it doesn’t display ☹

Thanks!!

```auto

keyListener = new Object();
keyListener.onKeyUp = function() {
    //
    var myText = mainTXT.text;
    myText.toUpperCase();
trace(myText.toUpperCase());
}

```
