Software INTs to PDS

 BBS: Inland Empire Archive
Date: 04-21-92 (08:33)             Number: 110
From: MATT HART                    Refer#: 64
  To: CORIDON HENSHAW               Recvd: NO  
Subj: Software INTs to PDS           Conf: (2) Quik_Bas
 > MH> Use ON TIMER (TimerNum&) GOSUB WhereEver

 CH> I need to use the timer tick because  ON TIMER won't be recogised
 CH> if the program is running a LIB or QLB function (Or SUB) at the
 CH> time the trap happens.

Sure it will - you just have to compile whatever function you need to trap in
with the /V or /W switch.  Another example of this is
capturing printer errors with /X resumeability (New word! :-
) ).  I can place ON ERROR GOTO code in the main module
with a trap routine that includes RESUME to enable
continuation after a printer error, place actual print
routine in a SUB module in a seperate .BAS file, compile
BOTH with /X, and when an error occurrs in the SUB,
trapping will jump to the error routine in the main .BAS,
and then RESUME will jump back into the SUB where it left
off.  If I compiled the SUB without /X, then a RESUME would
continue at the point of the CALL to the SUB program in the
main .BAS.  This is exactly the same with /V and /W.

 * Origin: Midnight Micro!  V.32/REL  (918)451-3306 (1:170/600)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET