bas7qck.hlp (Table of Contents; 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.
OPEN COM Statement
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
OPEN "COMn: optlist1 optlist2" [FOR mode] AS [#]filenum% [LEN=reclen%]
 
  ■ n           The communications port to open (1 = COM1, 2 = COM2)
  ■ optlist1    The most-often-used communications parameters:
                    [speed] [,[parity] [,[data] [,[stop]]]]
                Defaults: 300 baud, even parity, 7 data bits, 1 stop bit.
  ■ optlist2    Up to 10 other optional, less-often used data
                communications parameters.
  ■ mode        One of the keywords OUTPUT, INPUT, or RANDOM (the
                default).
  ■ filenum%    Any unused file number between 1 and 255, inclusive.
  ■ reclen%     The size of a random-access-mode buffer (128 bytes is
                default).