>Today I would use Keypress or Interactivechange. I used this approach long before OOP was implemented in VFP.
>
>BTW, "there are no stupid questions, only stupid answers".
And then there's the magical word "doh" and the magical slap on the forehead ;).
The stupid clause doesn't apply to this case, because many of the workarounds for bugs (in either Fox, VFP, DOS or any of them Windowses) may look really mysterious if you don't know what the bug was. The chr(255) was probably an internal way of messaging (IOW, I too don't really understand how it worked and why it was needed - I know mine didn't need it ;). Stuffing special characters into the keyboard buffer so they'd produce a special return value from readkey() was a technique which worked ever since FoxPlus, and only got additional values in FP. I now have trouble trying to understand my old code which used that, despite all the comments I wrote :).