Converting Strings to Uppercase.
There are many occasions when you'll
need to convert a string variable to uppercase, especially when you've
requested a response and need to test it. It's much easier to test it
against all-uppercase than to try to test for every combination of
uppercase and lowercase. The command for the conversion is (strcase) :
(setq uc (strcase t))
This converts the value of the string
variable t to uppercase and assigns
the new value to the variable uc.
|