Search

iLab BCP8000 FoxPro Wrapper

Need to integrate the Tysso BCP8000 with your software application?

With our wrapper you can. You will be able to programatically download the data collected through the BCP8000 in your application as a string.

The iLabMalta BCPWrapper exposes most of the methods in BCP8000 DLL so that you can access and communicate with the BCP8000 programatically.

Integrated Data Collector with Stock System


Buy Now - EUR 29.99

The following is sample source code how to download the Data File from the Tysso BCP8000 Data Collector as a string in a Visual Foxpro Application:

Messagebox("Scan one or two items on you BCP8000 and choose the Upload Menu option. Click ok when ready","Sample bco8000 Application")

lbErrorOccured = .F.

lsOldError = ON("ERROR")
ON ERROR lbErrorOccured = .T.

loMyDLL = CREATEOBJECT("iLabMalta.BCPWrapper")

loMyDLL.setPortName("com3")
loMyDLL.setBaudRate(115200)
loMyDLL.setPwd("")

IF !lbErrorOccured THEN
   lsDownloadFile = ""
   lsDownloadFile = loMyDLL.ReceiveData()

ON ERROR &lsOldError

IF lbErrorOccured THEN
     Messagebox("(1 - Connection Error) An error occured while trying to connect to the BCP 8000. Make sure the Data Collector is on the cradle, and you chose the correct Upload Data Option.","Sample bco8000 Application")
     RETURN
   ENDIF

?lsDownloadFile
ELSE
   Messagebox("(4 - Connection Error) An error occured while trying to connect to the BCP 8000. Make sure the Data Collector is on the cradle, and you chose the correct Upload Data Option. (" + ALLTRIM(Message()) + ")","Sample bco8000 Application")
ENDIF
RELEASE ALL

Filters
Sort
display