Solved

read data from COM port

Posted on 1997-08-24
1
221 Views
Last Modified: 2013-11-25
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
Comment
Question by:fyp
1 Comment
 
LVL 3

Accepted Solution

by:
dansari earned 50 total points
ID: 1432086
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now