Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 To: Sherina -
  Where is Sherina -?
 Cirebon
 Indonesia
 Sherina -
 Tags
Subject: RE: anyone knows barcode ?
Thread ID: 77342 Message ID: 78823 # Views: 4 # Ratings: 0
Version: Visual FoxPro 7 Category: Visual Basic
Date: Sunday, October 09, 2005 12:11:35 PM         
   


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

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