IsSerialPort()

Syntax

Result = IsSerialPort(#SerialPort)
Description
Tests if the given serial port is valid and correctly initialized.

Parameters

#SerialPort The serial port to test.

Return value

Nonzero if the serial port is valid, zero otherwise.

Remarks

This function is bulletproof and may be used with any value. This is the correct way to ensure a serial port is ready to use.

See Also

OpenSerialPort()

Supported OS

All

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