General information
Category:
Object Oriented Programming
Hey JT,
I think I know where you are needing to use this <s>.
When I did the same thing as a test ages ago, I first instantiated the remote object and had it return the total number of records that will be in the SCAN (temp1 record count). Then I started the thermomter using the returned count as the upper boundry, and called the COM processing method in a loop - once for each record, and this gave me the ongoing count to increment the thermometer.
Of course there was some overhead called the method in a loop, but really not too much. You'll get the biggest penalty from the initial COM remote intsantiation, then the communication is pretty fast after that.
Of course, that was a while ago and I may have actually forgotten everything.
E-mail me and let me know how things are going.
Rick
>I've seen plenty of examples of VFP developed COM components which simply return a value. That's straightforward. But how can I accomplish the following example?
>
>My VFP app calls an out of process COM component (developed in VFP6) which SCANs through a large table and does a bunch of processing. This will be time consuming, so I want to display a thermometer bar on the UI to show its progress for the end user. The COM component is out of process and I know that it cannot display any UI, so what's the best way to make the calling process provide a thermometer bar?
>
>Thanks in advance,
>John Tappero
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only