wait for button click


inside my program i use a while statement. Now i want that the program to
stop in this while statement and to wait for a button click. And after the
button click the program must work on from the position it stops.

I hope you understand my problem otherwise i try to explain it in a
different way.

Thanks for help.