Sorry David, I misinterpruted the KeyPress() for the InteractiveChange(). Time to get some sleep now. :)
I guess you would have to use the INKEY.
>>Hi Kamal,
>>
>>>How do I retrieve the last key pressed from within interactive change? I know there's a function INKEY(), but I'm not well versed on how vfp5 does its keyboard buffering.
>>
>>The InteractiveChange() method receives two parameters. The nKeyCode already contains the value of the last key pressed so you do not need to use the INKEY function. Have a look at the help file as you might find more interesting things.
>
>I'm sorry to report that I check the online help and the only parameter mentioned for InteractiveChange() is nIndex, which is related to array usage, not keyboard input. Did you make a mistake, or is my documentation mistaken?
>I know KeyPress() receives 2 parameters, one of which is refered to as nKeyCode in the documentation.
>
>Thank you for the quick response.