Function Com_Init() Foundation

Initializes a COM port

Syntax
Com_Init( <nComPortNum> , ;
          [<nBaudrate>] , ;  // Default: 300
          [<cParity>]   , ;  // Default: "N"
          [<nBitLength>], ;  // Default: 8
          [<nStopBits>]   ;  // Default: 1
        ) --> lInitialized
Parameters
<nBaudrate>
The baudrate can be set to any speed the PDD accepts.
<cParity>
The parity is a character representing the parity mode:
"N"one
"E"ven
"O"dd
"S"pace
"M"ark
<nBitLength>
The length can be set to 7 or 8 bits.
<nStopBits>
The number of stop bits can be set to 1 or 2 bits.
Return

Com_Init() returns .T. if the specified COM port is initialized otherwise .F.

Description

Initializes a specified COM port.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.