>Hi All,
>
> From the one running process (Eg. do while loop), Can i exit on pressing Cancel button? I can do it for Escape button using InKey() function. But i want to do it by pressing any button.
>
do while .T.
if chrsaw() then
exit
endif
enddo
CHRSAW() checks for any key in the keyboard buffer.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao