Control Reference > VSPrinter Control > VSPrinter Properties > Ports Property |
Returns the names of the ports to which the current printer is connected.
val$ = [form!]VSPrinter.Ports(i As Integer)
This property returns the names of all ports that have devices with the same name as the current device. The valid range is from zero to NPorts - 1.
For example, if the current Device is an "HP LaserJet 4L" connected to "LPT1:" and there's another "HP LaserJet 4L" connected to "LPT2:", then NPorts will return 2, Ports(0) will return "LPT1:", and Ports(1) will return "LPT2:".
String