Com

From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC

Description

Special global variable used to set COM (serial port) buffer size prior to opening COM port. The default is 8192 byte (8kb).

Syntax

  1. Com = bufferSize

Hints

To set the in and out communications buffers (each port has its own), set the variable Com to the desired size BEFORE opening the port.
Changing the variable after opening a port does not affect the size of the buffers for that port while it is open.
Note this variable is case-sensitive.

Example

    'set the size of the communications buffers 
    '(in and out) to 16K each
    Com = ( 16 * 1024 )

Useful Procedures

' Place a useful function or sub using this keyword here