IsSerialPort()

Syntax

Result = IsSerialPort(#SerialPort)
Description
Tests if the given #SerialPort number indicates a valid and correctly initialized serial port. This function is bullet-proof and may be used with any value. If the 'Result' is not zero then the object is valid and initialized, otherwise it returns zero. This is the correct way to ensure than a serial port is ready to use.

Supported OS

All

<- GetSerialPortStatus() - SerialPort Index - OpenSerialPort() ->