home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
d_b_a
/
86_12
/
testcase.sc
< prev
next >
Wrap
Text File
|
1986-11-04
|
630b
|
28 lines
;------------------------------------ TestCase.SC
;--- Test SWITCH, CASE, OTHERWISE, and ENDSWITCH.
CLEAR
STYLE ATTRIBUTE 40
@ 12,10
?? "Enter a number from 1 to 4, then press <-' : "
ACCEPT "N" PICTURE "#" TO X
;-------------------- Respond to entry.
@ 15,10
STYLE REVERSE, BLINK
SWITCH
CASE X = 1 :
?? "You entered a one"
CASE X = 2 :
?? "You entered a two"
CASE X = 3 :
?? "You entered a three"
CASE X = 4 :
?? "You entered a four"
OTHERWISE :
BEEP BEEP BEEP
?? "I said from 1 to 4!"
ENDSWITCH
SLEEP 4000
STYLE