Oxygen Basic
Programming => Example Code => General => Topic started by: Charles Pegge on May 19, 2011, 07:07:45 AM
-
This is a useful feature supported by C.
The first character or the quoted string is automatically converted to Ascii before the case is tested:
'============
'ASCII SELECT
'============
select asc "qwerty"
case "a" to "p"
print "a to p"
case "q" to "z"
print "q to z"
case else
print "not lower case"
end select
Charles
-
Thanks for the latest Alpha 34, in reading the notes about it... I saw the case selection by ascii, nice touch-- that will be a handy one!
-
This will work for the lower wide characters as well . I dont think there will be much demand for using this feature on full unicode.
Charles