DECLARE INTEGER Sleep IN Win32API INTEGER DO WHILE .T. DOEVENTS() && check for events - one time only =Sleep(24*60*60*1000) && do nothing for 24 hours; VFP gets no UI events && if a Key is pressed 12 hours into this, nothing && happens until the Sleep() function expires * Do something ENDDOCheck the docs on DOEVENTS(); it doesn't do what you think it does.