>>You have to include
DOEVENTS into your loop to let vfp to procees click on a Cancell button. See
http://fox.wikis.com/wc.dll?Wiki~FunctionSYS1270~VFP for more details.
>Please read "You have to" as "You could"
Right, since you could just check to see if it was pressed and do teh cancel code in the loop itself without using DoEvents.