Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I don't think this is right
Message
From
12/01/2009 14:59:58
 
 
To
12/01/2009 14:49:17
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:
01372926
Views:
17
>>>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) && One second
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform