Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to use a VB Active X with VFP
Message
De
08/11/2003 17:40:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Trying to use a VB Active X with VFP
Divers
Thread ID:
00847986
Message ID:
00847986
Vues:
54
I am trying to get a Visual Basic Active X to work in Foxpro. I do not know VB very well. The Command I am trying to get to work is as follows in VB:

Dim TopLeftX As Long
Dim TopLeftY As Long
Dim BottomRightX As Long
Dim BottomRightY As Long
Dim PageNo As Integer
Dim strBarcode As String

strBarcode = SoftekBarcode1.GetBarString(i)
PageNo = SoftekBarcode1.GetBarStringPos(1, TopLeftX, TopLeftY, BottomRightX, BottomRightY)

My implementation in VFP (I have tried several variations) is as follows:

PUBLIC TopLeftX, TopLeftY, BottomRightX, BottomRightY as Long


lcPage = thisform.OLEreader.GetBarStringPos (1, TopLeftX, TopLeftY, BottomRightX, BottomRightY)

I am getting an OLE Error stating that OLE error code 0x80020005: Type Mismatch.

I assume it is because the variable type is not right.

Am I missing something here. All other OLE commands work just fine. Can Anybody help.

Thanks

Larry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform