Returns the list of serial and parallel ports on the computer.
// Load the names of the serial ports on the computer in a Combo Box control.
SerialPortNames is array of strings = sListPort(1)
FOR EACH sPort IN SerialPortNames
ListAdd(COMBO_SerialPorts, sPort)
END
Syntax
<Result> = sListPort([<Type>])
<Result>: Array of strings
Array of strings that contains the names of the sought ports.
<Type>: Optional integer
Type of port to be listed: - 0 (default value) : Lists serial and parallel ports.
- 1 : Lists serial ports.
- 2: Lists parallel ports.
Business / UI classification: Business Logic