• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

read data from COM port

We wish to use a bar code scanner which connected to COM port. So, how can we read those data (bar code) directly from the COM port using visual basic 4.0 or above. (i.e once the scanner reads data, the code will immediately show on the screen).  Pls state the syntax, the expression and the declaration.
System:
port : COM1/2/3...
baud rate: 9600bps or above
parity: none
data bit: 8
Stop bit: 1
flow control: hardware
0
fyp
Asked:
fyp
1 Solution
 
dansariCommented:
fyp:

You should use the MSComm control that comes with VB4 - it's specifically for reading and writing to the com ports.  Look it up in the on-line help - all the properties and methods are described there.

Hope this helps.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now