# \[FMX\] IndexOf case sensitive

**URL:** <https://forum.kirupa.com/t/fmx-indexof-case-sensitive/24393>\
**Category:** flash\
**Created:** [June 30, 2003, 10:08am UTC](https://forum.kirupa.com/t/fmx-indexof-case-sensitive/24393 "2003-06-30T10:08:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andr\_in](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andr_in/32/37_2.png) [@andr\_in](https://forum.kirupa.com/u/andr_in)\
**Post date:** [June 30, 2003, 10:08am UTC](https://forum.kirupa.com/t/fmx-indexof-case-sensitive/24393/1 "2003-06-30T10:08:07Z")

</div>

Is there a way to make IndexOf not case sensitive?  
Or is there some other action for that!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 30, 2003, 10:12am UTC](https://forum.kirupa.com/t/fmx-indexof-case-sensitive/24393/2 "2003-06-30T10:12:25Z")

</div>

Could you not just do a lower case on the String then do the indexOf?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 30, 2003, 1:39pm UTC](https://forum.kirupa.com/t/fmx-indexof-case-sensitive/24393/3 "2003-06-30T13:39:46Z")

</div>

umm… now why the heck didn’t I think of that?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 30, 2003, 4:19pm UTC](https://forum.kirupa.com/t/fmx-indexof-case-sensitive/24393/4 "2003-06-30T16:19:23Z")

</div>

[AS]myString = “TEXT IS CRAZY!”;  
trace(myString.toLowerCase());[/AS]

Theres an example, you could also use toUpperCase() 🙂
