home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_BAS
/
PBFIXES2.ZIP
/
TEST.BAS
< prev
Wrap
BASIC Source File
|
1994-01-06
|
678b
|
25 lines
$OPTION CNTLBREAK OFF
$LIB ALL OFF
$DEBUG MAP ON
DEFINT A-Z
DECLARE FUNCTION CbrkDisable%()
IF CbrkDisable% THEN
CLS
PRINT "OK to press ^C OR ^Break now!"
OPEN "TESTFILE" FOR OUTPUT AS #1
FOR lcv% = 1 TO 200
PRINT #1, lcv%
NEXT lcv%
'You MUST CLOSE all files before issuing the END command !
'because SetOnExit calls our CbrkRestore routine, which could turn DOS
'BREAK checking back on. If this happens and there are files that
'have not yet been closed by PowerBASIC, a crash can occur when
'PowerBASIC calls DOS to close them.
CLOSE #1
ELSE
PRINT "Eight procedures have already been defined"
END IF
END
$LINK "CTRLC.PBU"