Click to See Complete Forum and Search --> : accessing com port


August 18th, 1999, 04:45 PM
i wrote a small prog that transfers an ascii file to a psion palmtop in qbasic. everything works fine, but iīm porting it to visual basic now and i canīt seem to access any of the Com ports with Visual Basic the way i do it in qbasic: Open "COM" + tcom + ":" + tbaud + ",N,8,1" for Output as #5

where tcom is the number of the port and tbaud the baud rate.
so how do i use the com port in Visual Basic?

August 24th, 1999, 06:34 AM
Hi..
Perhaps you can use MSCOMM32.ocx for this purpose.
This OCX come with Visual Basic Controls and is easily usable.