Is there a way to cancel a method call to a COM object in VFP ?
Here's my scenario.
The app is integrated with QuickBooks using the QBFC COM object.
At one of our sites, it sometimes take a very long time for the BeginSession() method to connect to the company file. Once in a while, it does not connect at all and the user must use the task manager to shut down our app and try again.
I'd like to be able to put a timeout on this so that the user does not need to take such action. But the ways I know of in VFP for interrupting execution put the brakes on after the current line finishes executing. In our case, the current line does not finish executing.
Is there an API call or some other strategy that can halt execution and enable control to be returned to VFP ?
Thanks.
Carl Chambers
Cardol Data Systems