home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
CASE.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
58 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME CASE .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB02.INC"
COLOR 7, 0
CLS
U$ = SPACE$(128) ' default for code page
FOR X% = 1 TO 128 ' stuff it with the 128
MID$( U$, X%, 1 ) = CHR$(X%+127) ' ASCII characters
NEXT '
L$ = U$ ' copy to LCASE
REPLACE ANY "┌┬┐├┼┤└┴┘─│" WITH "╔╦╗╠╬╣╚╩╝═║" IN U$ ' ┌ = ╔ for UCASE
REPLACE ANY "╔╦╗╠╬╣╚╩╝═║" WITH "┌┬┐├┼┤└┴┘─│" IN L$ ' ╔ = ┌ for LCASE
'
SetUPPERcase U$ ' send the new UCASE$
SetLOWERcase L$ ' send the new LCASE$
'
T$ = "┌────────┬────────┐" ' our "text" strings
M$ = "├────────┼────────┤" '
B$ = "└────────┴────────┘" '
'
PRINT T$ ' control box
PRINT M$ '
PRINT B$ '
PRINT '
UCASEstr T$ : PRINT T$ ' ucase the strings
UCASEstr M$ : PRINT M$ ' and print the new
UCASEstr B$ : PRINT B$ ' values
PRINT '
PRINT fLCASE$( T$ ) ' call the function to
PRINT fLCASE$( M$ ) ' print the LCASE
PRINT fLCASE$( B$ ) ' values
PRINT '
'
V$ = "notice that the English characters are " +_ ' for chars < 128 the
"also correctly translated." ' translations are also
UCASEstr V$ : PRINT V$ ' done correctly
PRINT fLCASE$( V$ ) '