|
-
Nov 5th, 1999, 10:43 PM
#1
Thread Starter
Hyperactive Member
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
-
Nov 5th, 1999, 10:57 PM
#2
New Member
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...
-
Nov 5th, 1999, 11:19 PM
#3
Guru
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|