qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COM(n) Statement Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
COM(n) Statement Details
 
Syntax
 
  COM(n) ON
  COM(n) OFF
  COM(n) STOP
 
The parameter n is the number of the communications port; n can be
either 1 or 2.
 
The COM ON statement enables communications event trapping.
If a character arrives at a communications port after a COM ON
statement, then the subroutine specified in the ON COM statement
is executed.
 
COM OFF disables communications event trapping. No communications
trapping takes place until another COM ON statement is executed.
Events occurring while trapping is off are ignored.
 
COM STOP inhibits communications event trapping so no trapping
takes place until a COM ON statement is executed. Events occurring
while trapping is inhibited are remembered and processed when the
next COM ON statement is executed.