Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <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 the trapping of communications activity via ON COM(n).

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

          ON    Causes QB to check for communications activity.

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

        STOP    Also disables trapping, but QB 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 with a
                nonzero line number has been executed).

   ----------------------------------------------------------------------

      Notes:    If the "Checking Between Statements" option is in effect,
                QB checks for communication activity after each statement.
                If the "Event Trapping" option is selected, QB checks
                after each new program line. If neither option is
                selected, no trapping takes place.

                For command-line compilation, /v enables checking after
                each statement, and /w enables checking after each new
                line. If neither switch is used, no trapping takes place.

See Also: ON COM Switches and Options

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