Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: WG: how to invalidate case sensitivity


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: WG: how to invalidate case sensitivity
Date   Sat, 11 Feb 2006 22:51:08 +0900

Gregor Fabian wrote:

I didn't find it in the manual nor the www.
Is there a way to invalidate the case sensitivity in Stata (9.1) ?
--------------------------------------------------------------------------------

As Kit mentioned, you cannot invalidate case sensitivity in Stata, but you
can use conventional programming methods to ignore case.

Joseph Coveney

clear
set obs 2
generate str1 var = "A"
replace var = "a" in 2
assert lower(var) == "a"
assert upper(var) == "A"
exit

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index