If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > how to drop start & stop codes when barcode scanned?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-06-05, 18:56
zobernjik zobernjik is offline
Registered User
 
Join Date: Feb 2004
Location: Australia
Posts: 183
how to drop start & stop codes when barcode scanned?

Hi guys, I hope somebody can help me or point me in the right direction at least.If I have a product that when scanned into the web site will scan as a single piece of string but it is really made out of start code - A0, componeneet code - 00150, stop code 3B, how could I drop prefix and sufix when the product is scanned so it only scans the actual product code.



Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 03-06-05, 19:43
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
You could create a on change event on the field that the data is being entered into.

I'm not sure how well this would work though as you really want to try and catch the values at the end, not part way though and there isn't really a way on knowing when that is unless

a. The barcode scanner passes a carriage return as well as the code
b. The barcodes are always a fixed length
c. The bar code format is exactly the same each time eg. 2 character suffix, 2 character prefix and 5 character code
Reply With Quote
  #3 (permalink)  
Old 03-06-05, 19:55
zobernjik zobernjik is offline
Registered User
 
Join Date: Feb 2004
Location: Australia
Posts: 183
I have realized that using mid() vb function is probably the best way to go and the easiest once I implement it to go with the rest of the code so I will try that.

thanks for your time
Reply With Quote
  #4 (permalink)  
Old 03-06-05, 19:58
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Yup, mid, left, right and length are great functions when dealing with this sort of problem. The only real issue is the string format itself. Good luck.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On