473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

VB input from scanner question

1
Hello,

I am trying to build a program using vb that will recieve barcode information from a scanner plugged into the usb port, and write this information to a database. Right now i have a multi-line textbox that the scan info is placed into. After the info is in the box i use an on button press event to trigger the Split() method to get each line and attach it to a variable. What I would like to do is find a way so that there is no need to press the button. I would like to be able to scan and forget.

I tried to put my code for splitting the information in the textbox1_textchanged sub but that only works for the first record in the split array. If I try and set a variable to the second record (split(1)) I get an error that split(1) never initializes, righly so I guess.

I am wondering if there is a way i can tell when my scan is over and when I can start reading the information from the scan.

Here is some background info on the scan
It's format is like this

Badge #
FirstName
LastName
Company
Address1
Address2
City
State
Zip
Phone1
Phone2
Email
Type
Notes
Jun 22 '06 #1
1 2727
sashi
1,754 Expert 1GB
hi there,

emm.. why not add a timer contol n a boolean variable to your project.. well.. my suggestion is very simple n might be handy..

since you are able to click the button automatically after the first scan.. now set the boolean value maybe to true n use the timer control to check the boolean value on every scan..

your timer must be able to set the boolean value false each time it's set to true..
so.. each time your boolean value is set to true the timer must change it to false..

hope you understand what am trying to say.. good luck my fren..
Jun 28 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: karimt | last post by:
I have a scanner connected to my server running Apache. I would like to have a script that allows me to get a pdf file directly from the scanner. Is this do-able?
2
by: Doug Lowe | last post by:
In Java 1.5, what's the easiest way to get a console java app to stop until the user presses the Enter key? I want to do something like this: Scanner sc = new Scanner(System.in); String...
7
by: Don Riesbeck Jr. | last post by:
I'm working on an application (OEM) using C# that utilizes input from a keyboard, and USB Barcode Scanner. The scanner is a HID Keyboard device, and input from it is sent to the system as if it...
3
by: Prof.Stanley | last post by:
Hello all, please i am trying to write a program that recieves a string from user and counts double vowels.I have a problem particularly in the way to input the string,below is my code please will...
1
by: Louis Cypher | last post by:
I'm working on an application (OEM) using c# that uses input from a keyboard and a USB Barcode Scanner. I need to be able to identify keystrokes from the barcode scanner and remove them from the...
1
by: JWest46088 | last post by:
The program asks for the user to enter a real number and an imaginary number followed by another set of a real number and an imaginary number. It then takes those and adds them, subtracts them, and...
6
evilmonkey
by: evilmonkey | last post by:
I am very new to programming as well as Java and this is my first post so please forgive me if this is not quite posted correctly. My Problem is that I have only been using scanner to get user input...
3
by: sandyw | last post by:
have an scanner which prompts the user to type some data into it. for example Lets say I have four strings. String id string name // this includes first and last name string address //this...
4
by: Gerry19 | last post by:
Hi All, I'm trying to monitor data passed from a USB Barcode scanner but I can't find any decent code examples of what I need to do, including any references I need to include. I know I need to...
4
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got an application that takes input from a handheld scanner: Once the incoming text meets the RegEx format and is the correct length, the command is accepted. The scanner that plugs in on...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.