Use the MSCOMM OCX. (Add this OCX to your project, add one instance to one
of your forms and add some simple code.)
Quick example:
in FORM_LOAD:
MSCOMM1.Commport=1'use COM1:
MSCOMM1.settings="9600,n,8,1" 'set baudrate, parity, databits, stopbits
MSCOMM1.portopen=true ' open com-port
in FORM_UNLOAD:
MSCOMM1.portopen=false
To send data to port:
MSCOMM1.output = "Data to be sent"
For more help, see the help-files.
Jacco.
Quote:
>I an using Visual Basic 5, and can anyone advise me on how to read serial
>interface with visual basic??...
>thanks a million
>-Kenneth Wang