?
Solved

read data from COM port

Posted on 1997-08-24
1
Medium Priority
?
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

801 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