[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
PEN Enable/Disable Pen Read and Trap Statement
PEN {ON | OFF | STOP}
Enables or disables the PEN function (which returns light pen status
information. Also enables or disables trapping of light pen activity.
ON Enables reading of the light pen status, via the PEN
function, and causes Turbo Basic to check for light pen
activity.
OFF Disables reading of the light pen status and causes Turbo
Basic not to check for light pen activity. This is the
default condition.
STOP Disables reading of the light pen status and deactivates
trapping, but Turbo Basic continues checking to see if the
pen has been activated. If it has, a subsequent PEN ON
results in an immediate trap (provided an ON PEN statement
with a nonzero line number has been executed).
--------------------------------------------------------------------------
Notes: With event trapping in effect, Turbo Basic checks for the
specified event after each program statement. The $EVENT
metastatement can be used to turn event trapping on and
off at specified points within a program.
See Also:
$EVENT
ON PEN
PEN (Function)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson