You can try using the Sleep() api call in your loop. If the program is called from vfp though using createprocess then you should be able to use waitforsingleobject to stop processing in your vfp app until it is finished.
>Hello Tracy,
>I want to run a do loop to see it is cleared from the process then i can start another program.
>
>because i dont want to run another program when the instance is still in the process(task manager)
>
>Thank you.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"