Is it possible to change the contents of an edit box
from upper case to lowercase
dynamically?
Printable View
Is it possible to change the contents of an edit box
from upper case to lowercase
dynamically?
Sure... strings have functions like:
toLowerCase()
toUpperCase()
example:
editbox.text = editbox.text.toUppercase();
i have try that but it does not like it
Quote:
ReciverEmail.onChanged = function() {
ReciverEmail = ReciverEmail.toLowerCase();
error_ReciverEmail.text = ReciverEmail;
_root.validateemail(ReciverEmail.text,error_Recive rEmail);
_root.objVars.ReciverEmail = ReciverEmail.text;
};
ReciverEmail2.onChanged = function() {
ReciverEmail2 = ReciverEmail2.toLowerCase();
conf_ReciverEmail.text = "";
_root.checkMail(ReciverEmail2.text,conf_ReciverEma il);
_root.objVars.ReciverEmail2 = ReciverEmail2.text;
};