Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ryan Lashway
  Where is Ryan Lashway?
 Warrensburg
 New York - United States
 Ryan Lashway
 To: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 Tags
Subject: RE: anyone knows barcode ?
Thread ID: 77342 Message ID: 78887 # Views: 4 # Ratings: 0
Version: Visual FoxPro 7 Category: Visual Basic
Date: Monday, October 10, 2005 4:03:24 PM         
   


It has always been my understanding the reading portion is done on the barcode reader and the input from barcode reader is interpreted the same as keyboard input.

In my code I have found some barcode reader require a * at the begining and end of input.

Ex: If you have a label you wich to assign the value of RT45A09, the barcode reader has to read *RT45A09*, where the * specify begining and end of value.

I currently use Wasp Fontware for my applications, in my code I have on input or keystroke (cant remeber off hand) that the value it taken in RT45A09 and then I force a enter on it making the default command button run. This is very handy in apps running searchs.

If you would like I could post the code tomorrow.





> Sherina,
> I have no such an example, because it depends of setting of BarCode reader. BUT you can try:
> Put a MSCOMM conrtol in form
>
> In Init event of the form put:
>
> WITH thisform.MyCommActiveX
>      .Settings = "9600,N,8,1" && 9600 bit rate, Parity - None, 8-data bits, 1-stop bit
>      .SThreshold = 1          && at every one bit received OnComm event must be aised
>      .PortOpen = .t.          && Open port, you must put additional error checking here
>                               && to see if you CAN open port
> ENDWITH
> 

>
> in OnComm event of the MyCommActiveX
>
>  IF this.CommEvent == 2 && Receive
>     thisform.text1.Value = thisform.Text1.Value + ASC(this.Iput)
>  ENDIF
> 

>
> Something like this. Keep in mind this is not tested.
>
>
>
>
>
> > Hallo Borislav
> >
> > I am very interested in your information. Do you have an example of
> > using MSCOMM control and its OnComm event to read the values readed by the Barcode Reader? Please...I really appreciate it.
> >
> > Regards
> >
> >
> > Sherina
> >
> >
> > > > it's possible use barcode in VFP ? n how to do ..plz
> > > It is.
> > > But what you want to do? To print Barcodes or to read barcodes.
> > > 1. If you want to print them, just download some Barcode fonts and put them in report.
> > >
> > > 2. If you want to read them, it depeneds of what barscanner you use. If the scanner is attached to Keyboard there is nothing you must do, when the user is positioned in TextBox control and scan Barcode all that is readed is placed to textbox.
> > > If the scanner is attached to COMx port you must use MSCOMM control and its OnComm event to read the values readed by the Barcode Reader

>
>
>
> VFP 8 SP 1




Ryan J. Lashway
http://www.lashtech.com

ENTIRE THREAD

anyone knows barcode ? Posted by tri eka susila @ 9/17/2005 10:04:29 AM
RE: anyone knows barcode ? Posted by Borislav Borissov @ 9/17/2005 10:19:57 AM
RE: anyone knows barcode ? Posted by Sherina - @ 10/9/2005 6:36:57 AM
RE: anyone knows barcode ? Posted by Borislav Borissov @ 10/9/2005 12:11:35 PM
RE: anyone knows barcode ? Posted by Ryan Lashway @ 10/10/2005 4:03:24 PM
RE: anyone knows barcode ? Posted by Borislav Borissov @ 10/10/2005 4:34:53 PM
RE: anyone knows barcode ? Posted by Ryan Lashway @ 10/11/2005 4:41:27 AM
RE: anyone knows barcode ? Posted by Borislav Borissov @ 10/11/2005 9:04:23 AM