home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
SETCNTRY.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
73 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME SETCNTRY.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-NB01.INC"
$INCLUDE "DAS-NB02.INC"
COLOR 7,0
CLS
? "┌────────────────────────────────────────────────────────────────────────────
? "│ fSetCountry% ( CountryCode% ) sets/loads DOS's CC data
? "│ fGetCountry$ () returns current CC data
? "├────────────────────────────────────────────────────────────────────────────
? "│ NOTE: This isn't going to work unless your system is configured for
? "│ code page switching. NLSFUNC etc.
? "│ SEE: INTRNATS.TXT for full details
? "└─────────────────────────────────────────────────────────────────────────────
?
DIM tCC AS CountryCodeTYPE
DATA 0, "SYSTEM" ' get your DOS manual out
DATA 7, "RUSSIA" ' turn to chapter 9 page 16 if you got the
DATA 44, "ENGLAND" ' <<right>> DOS ( else go to the appendix )
DATA 1, "AMERICA" ' and get CCodes that work on your system
DATA 90, "TURKEY" '
FOR X% = 0 TO 4
LOCATE 12, 1 : PRINT SPACE$( 960 ) : LOCATE 12, 1
READ C%, Cntry$
CC% = fSetCountry%( C% )
IF CC% = 0 THEN ITERATE
IF C% = 0 THEN OldCC% = CC%
LSET tCC = fGetCountry$( 0 )
PRINT "Country: "; Cntry$
PRINT "tCC.CountryCode =" ; tCC.CountryCode
PRINT "tCC.DateFormat =" ; tCC.DateFormat
PRINT "tCC.MoneySymbol = "; tCC.MoneySymbol
PRINT "tCC.ThousandSep = "; CHR$( tCC.ThousandSep )
PRINT "tCC.DecimalSep = "; CHR$( tCC.DecimalSep )
PRINT "tCC.DateSep = "; CHR$( tCC.DateSep )
PRINT "tCC.TimeSep = "; CHR$( tCC.TimeSep )
PRINT "tCC.MoneyFormat =" ; tCC.MoneyFormat
PRINT "tCC.TimeFormat =" ; tCC.TimeFormat
PRINT "tCC.UcaseRout =" ; tCC.UcaseRout
PRINT "tCC.ListSep = "; CHR$( tCC.ListSep )
LOCATE 14, 40 : PRINT fSYSdate$
LOCATE 15, 40 : PRINT fMoney$( 1234.56, 4 )
LOCATE 16, 40 : PRINT USING$( "####,.##", 5678.90 )
LOCATE 21, 40 : PRINT fSYStime$
LOCATE 25, 60
PRINT "PRESS ANY KEY";
IF fAnyKey$ = CHR$(027) THEN EXIT FOR
NEXT
fSetCountry% OldCC% ' reset origional