Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Datalogic Barcode Scanner problems
Hi All,
I am trying to use the Datalogic formula.ocx to interface to a Datalogic Formula 725 Barcode scanner. We can successfully communicate with this scanner via Formula.OCX using VB 6.0, however using VFP6.0 SP3 I am having problems.
In VFP I have a simple form with an ActiveX control based on this OCX. We can successfully retrieve data from the scanner but are unable to write to the scanner as the properties & methods that I have used to do this under VB are not visible in Visual Foxpro.
The VB statement to write to the scanner that works is:
lnresult = frmMain.Formula1.Satellites(101).DataWrite(Val(lcScannerID), lcPrompt)
If I run the following code in VFP
lnResult = thisform.Formula1.Satellites(101).DataWrite(Val(lcScannerID), lcPrompt)
I get the following error message
"member Satellites does not evaluate to an object"
If I inspect thisform.formula1.Satellites in the debugger its type is listed as Object but there is no + sign next to it to inspect its properties.
Any thoughts or suggestions would be most gratefully accepted,
TIA
Andy
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement