>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()
ThisForm.oleMyControl.Object.SomeMethod()
ThisForm.oleMyControl.SomeProperty = 1
ThisForm.oleMyControl.Object.SomeProperty = 1
You might also want to try:
_vfp.AutoYield = .F.