Results 1 to 6 of 6

Thread: Barcode scanning - Help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Malaysia
    Posts
    90
    I have created a form with a text box named txtpart. There is no problem with the program if users enter data into this text box using a standard keyboard. However if they used a scanner to scan in a barcode and hit the <enter> key on the keyboard, this program terminate itself and returned to window!

    I have noticed that after scanning data into this text box, I need to use the mouse to move the hair-line cursor from its leftmost position inside the text box to the position after the last character. If I hit the <enter> key now, my program works fine!

    How can I control the cursor movement? I thought the cusror should automatically station itself at the end of the data after each scan??

    Private Sub Txtpart_KeyPress(KeyAscii As Integer)
    KeyAscii = Asc(UCase(Chr(KeyAscii)))
    If KeyAscii = 13 Then
    find_part
    End If
    End Sub
    CT

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Talking depends on the scanner

    depends on how you set your scanner
    i scan barcodes into textboxes as well
    the curser usually stays to the end of the barcode

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Malaysia
    Posts
    90
    Thank you for the reply, will try both method suggested above.

    With best regards
    CT
    CT

  4. #4
    Lively Member
    Join Date
    May 2000
    Posts
    67

    Post

    I'm curious coz i always wonder how to work with barcodes.
    How did you do it is there some special code for that
    can you give me some code or send me a place information
    where i can gather some information about that.

    Thanks! bye.
    If possible please provide codes.
    Process by example is the best way to learn.

  5. #5
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Does this have to do with the CueCat?

    You know how RadioShack is giving away those barcode scanners? Is this what you guys are talking about? I got one and wrote my own app that translates the code into it's real value, if that's what you want.

    bob

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I'm sorry guys, but I'm really curious why are you scanning bar-codes? can you do cool stuff with it? seems fun
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width