That's great thanks
What if I want to pause Function1() while is running and flag becomes false
It's not doing that know right.?
Is there a way to put the function like in a queue and pause or stop then if the flags become false?
you are a geniusPaeryn