>Hi everybody,
>
>Here is a problem:
>
>Class (or program) does some long process (Excel automation), but does not use any VFP specific loop construction. This class (program) shows an animation (using animation class), so user can at least be enterteined by this. However, some users (which are impatient, as I'm) could be tired of waitng and want to stop this long process right away. So, the problem is: how can we stop the process and return control to the main program, which invoked this long process program?
>
>What could be your ideas?
>
>Thanks a lot in advance.
How about creating a separate, small, EXE, that only does your Word / Excel automation? RUN /N should work. OTOH, VFP doesn't have built-in multithreading capabilities.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)