David
Mon Feb 14 20:08:54 CST 2005
Aaron,
A call to a COM method in VFP is going to be a totally synchronous modal
activity. There is no way for the COM thread to provide feedback directly to
the caller.
You might be able to in another thread of the calling program to query a
property of the COM object, and if that works you could set a lEndItAll
property that the code inside the worker memthod could poll and terminate.
A sure fire way that will work is to use a semaphore table/file that the
caller and the COM object would have access to. The COM could write a
progress field and read an EndItAll field.
--
df - Microsoft MVP FoxPro
http://www.geocities.com/df_foxpro
"Aaron Blacksmith" <Aaron@___Nospam.com> wrote in message
news:0uYPd.17365$d5.138427@newsb.telia.net...
> One of my applications needs to run quite heavy select statements on large
> tables, and also quite time-consuming indexing operations. How can I:
> - Update a progress bar during such a heavy database operation
> - Give the user an option to cancel an operation after it has started.
> Any ideas would be highly appreciated.
> Aaron
>
>