>>>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?
>>
>>Maybe some control needs some extra time? Try to add some delay after one of the lines
>>Line 1
>>DECLARE Sleep IN WIN32API Long
>>Sleep(1000)
>>Line 2
>
>Tried using WAIT TIMEOUT 5 (wait 5 seconds), didn't help. put a Wait Window in the OnScannerStatus method and it's not showing up. I'm really beginning to hate this control, and any questions like this that we send to M2Sys, we get the response that "They don't know anything about FoxPro" and that's it.
>
>It's almost like the event is not firing off without the suspend
I have seen cases where you need to add a Doevents after a line, in order to get things working.