Solved

read data from COM port

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

696 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