2023-09-16 17:28:03 -07:00
|
|
|
func$ toUpper s$ .
|
|
|
|
|
for c$ in strchars s$
|
|
|
|
|
code = strcode c$
|
2023-07-01 11:58:00 -04:00
|
|
|
if code >= 97 and code <= 122
|
|
|
|
|
code -= 32
|
|
|
|
|
.
|
2023-09-16 17:28:03 -07:00
|
|
|
res$ &= strchar code
|
2023-07-01 11:58:00 -04:00
|
|
|
.
|
2023-09-16 17:28:03 -07:00
|
|
|
return res$
|
2023-07-01 11:58:00 -04:00
|
|
|
.
|
2023-09-16 17:28:03 -07:00
|
|
|
func$ toLower s$ .
|
|
|
|
|
for c$ in strchars s$
|
|
|
|
|
code = strcode c$
|
2023-07-01 11:58:00 -04:00
|
|
|
if code >= 65 and code <= 90
|
|
|
|
|
code += 32
|
|
|
|
|
.
|
2023-09-16 17:28:03 -07:00
|
|
|
res$ &= strchar code
|
2023-07-01 11:58:00 -04:00
|
|
|
.
|
2023-09-16 17:28:03 -07:00
|
|
|
return res$
|
2023-07-01 11:58:00 -04:00
|
|
|
.
|
|
|
|
|
string$ = "alphaBETA"
|
|
|
|
|
print string$
|
2023-09-16 17:28:03 -07:00
|
|
|
print toUpper string$
|
|
|
|
|
print toLower string$
|