Click to See Complete Forum and Search --> : toLowerCase


Arc
05-14-2003, 09:49 PM
I need to turn a varibale to all lower case characters. I am trying to use this

var GetExt = OtherVar.toLowerCase();

But i get an error saying it doesnt support that.


Any ideas?

Thanks!

:D

Arc
05-14-2003, 10:03 PM
I just ment to turn the variable value to lowercase. But 10 seconds after i posted this (as usual after an hour of pranking) i figured out what the deal was. The variable is an array and i didnt put the array parameters in the variable.

it shoudl have looked like this..
GetExt[1] = GetExt[1].toLowerCase();

but i had

GetExt = GetExt.toLowerCase();

javascripts error messages are very criptic and no help at all haha..

Thanks!:D