# Changing lowercase to Uppercase HELP!

**URL:** <https://forum.kirupa.com/t/changing-lowercase-to-uppercase-help/290995>\
**Category:** Uncategorized\
**Created:** [June 23, 2009, 1:45pm UTC](https://forum.kirupa.com/t/changing-lowercase-to-uppercase-help/290995 "2009-06-23T13:45:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k4rlos](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@k4rlos](https://forum.kirupa.com/u/k4rlos)\
**Post date:** [June 23, 2009, 1:45pm UTC](https://forum.kirupa.com/t/changing-lowercase-to-uppercase-help/290995/1 "2009-06-23T13:45:29Z")

</div>

Hi All,

I need to ensure that the output from my text box is uppercase at all times.

The text fields are

friendsName\_tf  
messageOne\_tf  
messageTwo\_tf

My code is thus so far:

private function displayForm() {  
//Setup intereaction on each of the form elements  
this.error\_tf.visible = false;  
this.error1\_tf.visible = false;  
new FormElement(this.yourName\_tf, this.yourName\_tf.text, 100, 1);  
new FormElement(this.yourEmail\_tf, this.yourEmail\_tf.text, 100, 2);  
new FormElement(this.friendsName\_tf, this.friendsName\_tf.text, 100, 3);  
new FormElement(this.friendsEmail\_tf, this.friendsEmail\_tf.text, 100, 4);  
new FormElement(this.messageOne\_tf, this.messageOne\_tf.text, 10, 5);  
new FormElement(this.messageTwo\_tf, this.messageTwo\_tf.text, 20, 6);  
new FormElement(this.email1\_tf, this.email1\_tf.text, 100, 7);  
new FormElement(this.email2\_tf, this.email2\_tf.text, 100, 8);  
new FormElement(this.email3\_tf, this.email3\_tf.text, 100, 9);  
this.help01.addEventListener(MouseEvent.CLICK, goWindow01);  
this.help02.addEventListener(MouseEvent.CLICK, goWindow02);  
}

```
    private function checkCaps(p_event:Event) {
        var str:String = "friendsName_tf"
            trace(str.toLowerCase()); // example.
            trace(str.toUpperCase()); // EXAMPLE.
            str = str.toUpperCase();
    }

```

Am i calling the name of the text field properly? do i need to call the function? if so where?

I am very much still learning AS3 so please help…:hr:

Cheers
