17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GW-BASIC <strong>User's</strong> Guide<br />

COM(n) Statement<br />

Purpose:<br />

To enable or disable trapping of communications activity to the specified communications<br />

adapter.<br />

Syntax:<br />

COM(n) ON<br />

COM(n) OFF<br />

COM(n) STOP<br />

Comments:<br />

n is the number of the communications adapter 1 or 2.<br />

Execute a COM(n) ON statement before ON COM(n) statement to allow trapping. After COM(n)<br />

ON, if a nonzero number is specified in the ON COM(n) statement, BASIC checks every new<br />

statement to see if any characters have come in the communication adapter.<br />

With COM(n) OFF, no trapping takes place, and all communications activity will be lost.<br />

With COM(n) STOP, no trapping takes place. However, any communication that takes place will<br />

be remembered so that immediate trapping will occur when COM(n) ON is executed.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/COMN.html28/03/2004 21.29.19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!