Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I don't think this is right
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01372917
Message ID:
01372929
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform