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


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


  1. Com = bufferSize


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.


    '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