I need to perform some actions in an infinite loop, taking into account the pressed key at each iteration. I wrote:
Code: Select all | Expand
do while .T.
if inkey(0)=32
.........
else
exit
endif
sysrefresh()
enddo
Code: Select all | Expand
do while .T.
if inkey(0)=32
.........
else
exit
endif
sysrefresh()
enddo
Code: Select all | Expand
IF LASTKEY() = VK_ESCAPE
...
ELSE
...
ENDIF