[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson