Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I don't think this is right
Message
 
À
12/01/2009 14:39:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01372917
Message ID:
01372929
Vues:
10
>Ok....same ActiveX control
>
>if I run the code with a 'suspend' and step through, it gives me the correct information (Scanner exists, server exists). If I take the suspend out and run the code, it tells me that the Scanner doesn't exist, nor does the server...
>
>What the Huh?

Just a WAG but try accessing the control.Object.Method instead (basically, add in "object" between your method/property calls). So:
ThisForm.oleMyControl.SomeMethod()
* Becomes
ThisForm.oleMyControl.Object.SomeMethod()

* And
ThisForm.oleMyControl.SomeProperty = 1
* Becomes
ThisForm.oleMyControl.Object.SomeProperty = 1
You might also want to try:
_vfp.AutoYield = .F.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform