Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>com(n) enable/disable comm port trapping</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COM(n)                   Enable/Disable Comm Port Trapping

 COM(n) {ON | OFF | STOP}

    Enables or disables the trapping of communications activity via ON
    COM(n).

           n    Must be 1, for COM1:, or 2, for COM2:.

          ON    Causes Turbo Basic to check for communications activity.

         OFF    Causes Turbo Basic not to check for communications
                activity. This is the default condition.

        STOP    Also disables trapping, but Turbo Basic continues checking
                for activity at the specified communications port. If such
                activity occurs, a subsequent COM(n) ON results in an
                immediate trap (provided an ON COM(n) statement 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.

                The size of the communications adapter buffer can be
                adjusted by means of the $COM metastatement.

See Also: $COM $EVENT ON COM

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson