Re: Serial ports.



Sorry I see what you mean now.

However if I try

Dim p() As String
p = IO.Ports.SerialPort.GetPortNames
MsgBox(UBound(p))
All I get is '0'


"Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
news:%23PVr90xEHHA.2356@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

The PortName method returns a String array of installed ports. You can
download example code from my homepage that illustrates this.

***

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.



.


Loading