Syntax:
FUNCTION PortOpen(BYVAL PortNumber AS LONG, BYVAL BaudRate AS LONG) AS LONG
Parameters:
PortNumber = Number of the port to open (1 for Com1, 2 for Com2 etc.)
Typically 1 is used
BaudRate = Baud Rate of communication (9600, 19200, 0r 38400)
Typically 9600