-
Hi,
I want to type my name as richard, RICHARD, RiChArD etc... and still continue.
At the moment I use the code..
if txtInput.text = "Richard" or txtInput = "richard" or txtInput = "RiChArD" etc...
is there an easy way of doing this or do I have to cover every possible way of typing the name???
Thanks
-
You can use either the upper or lower case formatting functions:
IF LCASE(txtInput.text) = "richard" then...
or use:
IF UCASE(txtInput.text) = "RICHARD" then...
-
An easier way is to put Option Compare Text at the first line of code.
Then, Richard = rICHARD = RicHarD = etc.
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879