Solved

read data from COM port

Posted on 1997-08-24
1
235 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How does CurrentUser work? 10 38
Notepad++ how to remove delimiter : from beggning of the line? 3 114
VB6 - Compare and highlight cell not the same 3 53
Windows ICD FFU Issue 4 60
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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