ComponentOne VSView 8.0
Ports Property

Returns the names of the ports to which the current printer is connected.

Syntax

val$ = [form!]VSPrinter.Ports(i As Integer)

Remarks

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:".

Data Type

String

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback